$vars['form']['plugins'][$plugin]['#plugin']->title . "". t('Remove') ."", 'href' => $_GET['q'], 'html' => TRUE, 'fragment' => "context-plugin-form-{$plugin}", ); $class = $vars['form']['plugins'][$plugin]['#context_enabled'] ? "context-plugin-{$plugin}" : "context-plugin-{$plugin} disabled"; $vars['plugins'][$class] = $link; } } /** * Preprocessor for theme('context_ui_form'). */ function template_preprocess_context_ui_form(&$vars) { drupal_add_css(drupal_get_path("module", "context_ui") ."/context_ui.css"); drupal_add_js(drupal_get_path("module", "context_ui") ."/context_ui.js"); drupal_add_js(drupal_get_path('module', 'context_ui') . '/jquery.pageEditor.js'); $vars['buttons'] = $vars['form']['buttons']; unset($vars['form']['buttons']); }