function date_popup_install in Date 6.2
Same name and namespace in other branches
- 7 date_popup/date_popup.install \date_popup_install()
Implementation of hook_install().
File
- date_popup/
date_popup.install, line 28
Code
function date_popup_install() {
if (module_exists('content')) {
drupal_load('module', 'content');
if (!db_table_exists(content_instance_tablename())) {
return;
}
if (module_exists('date_repeat')) {
db_query("UPDATE {" . content_instance_tablename() . "} SET widget_active=1 WHERE widget_type='%s' OR widget_type='%s'", 'date_popup', 'date_popup_repeat');
}
else {
db_query("UPDATE {" . content_instance_tablename() . "} SET widget_active=1 WHERE widget_type='%s'", 'date_popup');
}
content_clear_type_cache(TRUE);
}
}