=')) { $requirements['colorbox_plugin'] = array( 'title' => $t('Colorbox plugin'), 'severity' => REQUIREMENT_OK, 'value' => $colorbox_version, ); } else { $requirements['colorbox_plugin'] = array( 'title' => $t('Colorbox plugin'), 'value' => $t('At least @a', array('@a' => COLORBOX_MIN_PLUGIN_VERSION)), 'severity' => REQUIREMENT_ERROR, 'description' => $t('You need to download the !colorbox and extract the entire contents of the archive into the %path folder of your server.', array('!colorbox' => l(t('Colorbox plugin'), 'http://colorpowered.com/colorbox/'), '%path' => $library_path)), ); } } return $requirements; } /** * Implements hook_uninstall(). */ function colorbox_uninstall() { db_query("DELETE FROM {variable} WHERE name LIKE 'colorbox_%'"); } /** * Delete the unused colorbox_login_form variabel. */ function colorbox_update_7001() { $ret = array(); variable_del('colorbox_login_form'); return $ret; } /** * Delete the unused colorbox_title_trim and * colorbox_title_trim_length variabels. */ function colorbox_update_7002() { $ret = array(); $colorbox_title_trim = variable_get('colorbox_title_trim', NULL); $colorbox_title_trim_length = variable_get('colorbox_title_trim_length', NULL); if (!empty($colorbox_title_trim)) { variable_set('colorbox_caption_trim', $colorbox_title_trim); } if (!empty($colorbox_title_trim_length)) { variable_set('colorbox_caption_trim_length', $colorbox_title_trim_length); } variable_del('colorbox_title_trim'); variable_del('colorbox_title_trim_length'); return $ret; }