name, NULL) || variable_get('image_ncck_allow_'. $provider->name, NULL); if (isset($test)) { variable_set('emfield_emimage_allow_'. $provider->name, $test); variable_del('emfield_image_ncck_allow_'. $provider->name); variable_del('image_ncck_allow_'. $provider->name); } } // return TRUE; } function emimage_disable() { drupal_load('module', 'content'); content_notify('disable', 'emimage'); } function emimage_update_1() { $ret = _emimage_update_reset_cache_views(); return $ret; } function emimage_update_6001() { // We added options to themes, so need to rebuild the theme registry. drupal_rebuild_theme_registry(); return array(); } function emimage_update_6002() { // We added options to themes, so need to rebuild the theme registry. drupal_rebuild_theme_registry(); $ret[] = array( 'query' => t('Rebuilt the theme to accommodate new options.'), 'success' => TRUE ); return $ret; } // I'd like this to be conditional, so it only runs if they don't have Views installed. // However, module_exists doesn't actually work in the update scripts. // TODO: Conditional on if table exists instead... function _emimage_update_reset_cache_views() { $ret = array(); $ret[] = update_sql("DELETE FROM {cache_views}"); return $ret; }