_optimizedb_date($last_optimization), )); } else { $time_optimization = $t('Optimization yet was not run.'); } $requirements['optimizedb'] = array( 'title' => $t('Database Optimization'), 'description' => $t('You must perform database optimization. Hide notification', array( '@optimize_link' => url('admin/config/development/optimizedb'), '@hide_link' => url('admin/config/development/optimizedb/hide'), )), 'severity' => REQUIREMENT_ERROR, 'value' => $time_optimization, ); } } if ($phase == 'install') { // Need to verify the database connection, hook is called when // install installation profile, if the module is added to the dependencies. if (Database::isActiveConnection()) { module_load_include('module', 'optimizedb', 'optimizedb'); if ($message = optimizedb_check_works()) { $requirements['optimizedb'] = array( 'title' => $t('Database Optimization'), 'description' => $message, 'severity' => REQUIREMENT_ERROR, ); } } } return $requirements; } /** * Clear the cache for cache_id "optimizedb_tables_status". */ function optimizedb_update_7100() { cache_clear_all('optimizedb_tables_status'); } /** * Rebuild menu, a new menu item. */ function optimizedb_update_7101() { menu_rebuild(); } /** * Changing the name of a variable. */ function optimizedb_update_7102() { $clear_type = variable_get('optimize_clear_type', 0); variable_set('optimizedb_clear_type', $clear_type); variable_del('optimize_clear_type'); }