$t('Views RSS: Media (MRSS) Elements'), 'description' => $t('Views RSS module does not seem to be enabled. Please make sure it is enabled before enabling Views RSS: Media (MRSS) Elements module.', array( '@views_rss_url' => url('http://drupal.org/project/views_rss'), )), 'severity' => REQUIREMENT_ERROR, 'value' => NULL, ); } elseif (array_pop($vrb_array) < array_pop($vrmrb_array)) { $requirements['views_rss_media'] = array( 'title' => $t('Views RSS: Media (MRSS) Elements'), 'description' => $t('Your current build of Views RSS module (!views_rss_build) is too old for this version of Views RSS: Media (MRSS) Elements module to work properly. Minimum version required is !views_rss_required. Please upgrade.', array( '@views_rss_url' => url('http://drupal.org/project/views_rss'), '!views_rss_build' => VIEWS_RSS_BUILD, '!views_rss_required' => VIEWS_RSS_MEDIA_REQUIRED_BUILD, )), 'severity' => REQUIREMENT_ERROR, 'value' => NULL, ); } return $requirements; } /** * Implements hook_install(). */ function views_rss_media_install() { // Clear Views cache to force-rebuild namespaces and feed elements. cache_clear_all('views_rss:', 'cache_views', TRUE); } /** * Implements hook_uninstall(). */ function views_rss_media_uninstall() { if (db_table_exists('cache_views')) { cache_clear_all('views_rss:', 'cache_views', TRUE); } }