You are here

function feeds_fast_news_install in Feeds 6

Same name and namespace in other branches
  1. 7 feeds_fast_news/feeds_fast_news.install \feeds_fast_news_install()

Implementation of hook_install().

File

feeds_fast_news/feeds_fast_news.install, line 25
Install hooks.

Code

function feeds_fast_news_install() {

  // We are replacing feeds_defaults module, taking over its table.
  // Hence we cannot use drupal_install_schema('feeds_fast_news');
  $schema = drupal_get_schema_unprocessed('feeds_fast_news');
  _drupal_initialize_schema('feeds_fast_news', $schema);
  $ret = array();
  foreach ($schema as $name => $table) {

    // Check whether table exists.
    if (!db_table_exists($name)) {
      db_create_table($ret, $name, $table);
    }
  }
}