You are here

function feeds_update_6010 in Feeds 7

Same name and namespace in other branches
  1. 6 feeds.install \feeds_update_6010()

Enable all Feeds News, Feeds Import and Feeds fast news features.

File

./feeds.install, line 465
Schema definitions install/update/uninstall hooks.

Code

function feeds_update_6010() {
  drupal_install_modules(array(
    'feeds_news',
    'feeds_import',
  ));
  if (module_exists('data')) {
    drupal_install_modules(array(
      'feeds_fast_news',
    ));
    drupal_set_message(t('Installed Feeds News, Feeds Fast News and Feeds Import as replacement for Feeds Defaults module. If you were not using Feeds Defaults then you can safely disable Feeds News and Feeds Import.'));
  }
  else {
    drupal_set_message(t('Installed Feeds News and Feeds Import as replacement for Feeds Defaults module. If you were not using Feeds Defaults then you can safely disable Feeds News and Feeds Import.'));
  }
  if (module_exists('features')) {
    drupal_set_message(t('<strong>Review enabled state of importer configurations on admin/structure/feeds and features on admin/build/features.</strong>'));
  }
  else {
    drupal_set_message(t('<strong>Review enabled state of importer configurations on admin/structure/feeds and Feeds modules on admin/build/modules.</strong>'));
  }
  return array();
}