You are here

function publication_date_install in Publication Date 7

Same name and namespace in other branches
  1. 8.2 publication_date.install \publication_date_install()
  2. 8 publication_date.install \publication_date_install()
  3. 6 publication_date.install \publication_date_install()
  4. 7.2 publication_date.install \publication_date_install()

Implements hook_install().

File

./publication_date.install, line 40
Installation functions for the Publication Date module.

Code

function publication_date_install() {

  // Set publication dates for existing nodes.
  _publication_date_update_existing();

  // This module must be called after some other modules (i.e. Scheduler).
  db_update('system')
    ->fields(array(
    'weight' => 99,
  ))
    ->condition('name', 'publication_date')
    ->execute();
}