You are here

nd.install in Node displays 6.2

Same filename and directory in other branches
  1. 6.3 nd.install
  2. 6 nd.install
  3. 7 nd.install

Node displays install file.

File

nd.install
View source
<?php

/**
 * @file
 * Node displays install file.
 */

/**
 * Implementation of hook_install().
 */
function nd_install() {
  $install_text = 'Installation of Node displays is done. Please remember: if in the future you decide
  to implement your own hook_preprocess functions which run after the modulename_preprocess_hook,
  you might run into a racing condition problem where data won\'t be updated. Read !url for a solution.';
  drupal_set_message(t($install_text, array(
    '!url' => l('http://drupal.org/node/572614', 'http://drupal.org/node/572614'),
  )));

  // RSS doesn't have all regions.
  variable_set('ds_build_mode_4', 'not_all');
}

/**
 * Implementation of hook_uninstall().
 */
function nd_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'nd_%%'");
  variable_del('ds_build_mode_4');
}

/**
 * Implementation of hook_update_N().
 *
 * We simply return an array here. We want the people to
 * run update.php because new theming functions got introduced.
 */
function nd_update_1() {
  return array();
}

/**
 * Implementation of hook_update_N().
 * We set the nd_use_date_api to FALSE because otherwhise people
 * will lose the post date PHP field if they use it.
 */
function nd_update_2() {
  variable_set('nd_use_date_api', FALSE);
  return array();
}

Functions

Namesort descending Description
nd_install Implementation of hook_install().
nd_uninstall Implementation of hook_uninstall().
nd_update_1 Implementation of hook_update_N().
nd_update_2 Implementation of hook_update_N(). We set the nd_use_date_api to FALSE because otherwhise people will lose the post date PHP field if they use it.