function node_gallery_update_7001 in Node Gallery 7
Enable the node_gallery_api module to create its database tables.
File
- ./
node_gallery.install, line 258 - Install, update and uninstall functions for the node_gallery module.
Code
function node_gallery_update_7001() {
if (!db_table_exists('node_gallery_galleries')) {
// Check to ensure we have all dependencies first. Throw exception if not.
// We do this first so we can display a specific error to the user.
$module_list = array(
'node_gallery_api',
'node_gallery',
);
_node_gallery_check_dependencies($module_list);
_node_gallery_check_field_upgrades();
// Enable the modules.
module_enable($module_list);
}
}