You are here

function calendar_install in Calendar 7

Same name and namespace in other branches
  1. 5.2 calendar.install \calendar_install()
  2. 5 calendar.install \calendar_install()
  3. 6.2 calendar.install \calendar_install()
  4. 7.2 calendar.install \calendar_install()

Implementation of hook_install().

File

./calendar.install, line 60
Install, update and uninstall functions for the calendar module.

Code

function calendar_install() {
  $ret = array();
  module_enable(array(
    'date_api',
  ));

  // Make sure this module loads after date_api.
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('name', 'calendar')
    ->execute();
  db_delete('cache_views')
    ->execute();
  return $ret;
}