function calendar_install in Calendar 7
Same name and namespace in other branches
- 5.2 calendar.install \calendar_install()
- 5 calendar.install \calendar_install()
- 6.2 calendar.install \calendar_install()
- 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;
}