function publication_date_install in Publication Date 7
Same name and namespace in other branches
- 8.2 publication_date.install \publication_date_install()
- 8 publication_date.install \publication_date_install()
- 6 publication_date.install \publication_date_install()
- 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();
}