diff options
Diffstat (limited to 'modules/shortcut')
-rw-r--r-- | modules/shortcut/shortcut.admin.inc | 19 | ||||
-rw-r--r-- | modules/shortcut/shortcut.css | 9 | ||||
-rw-r--r-- | modules/shortcut/shortcut.module | 4 |
3 files changed, 9 insertions, 23 deletions
diff --git a/modules/shortcut/shortcut.admin.inc b/modules/shortcut/shortcut.admin.inc index 0baa368c2..27b6a5dfd 100644 --- a/modules/shortcut/shortcut.admin.inc +++ b/modules/shortcut/shortcut.admin.inc @@ -133,25 +133,6 @@ function shortcut_set_switch_submit($form, &$form_state) { } /** - * Theme function for the form that switches shortcut sets. - * - * @param $variables - * An associative array containing: - * - form: An array representing the form. - * @return - * A themed HTML string representing the content of the form. - * - * @ingroup themeable - * @see shortcut_set_switch() - */ -function theme_shortcut_set_switch($variables) { - $form = $variables['form']; - // Render the textfield for adding a new set inline with the radio button. - $form['set']['new']['#title'] = t('New set: !textfield', array('!textfield' => drupal_render($form['new']))); - return drupal_render_children($form); -} - -/** * Menu callback; Build the form for customizing shortcut sets. * * @param $form diff --git a/modules/shortcut/shortcut.css b/modules/shortcut/shortcut.css index b07f6a025..3cb92652b 100644 --- a/modules/shortcut/shortcut.css +++ b/modules/shortcut/shortcut.css @@ -82,3 +82,12 @@ div.add-or-remove-shortcuts a:hover span.text { -webkit-border-bottom-right-radius: 5px; } +#shortcut-set-switch .form-type-radios { + padding-bottom: 0; + margin-bottom: 0; +} + +#shortcut-set-switch .form-item-new { + padding-top: 0; + padding-left: 17px; +} diff --git a/modules/shortcut/shortcut.module b/modules/shortcut/shortcut.module index 225cb8e32..5f8da1835 100644 --- a/modules/shortcut/shortcut.module +++ b/modules/shortcut/shortcut.module @@ -105,10 +105,6 @@ function shortcut_menu() { */ function shortcut_theme() { return array( - 'shortcut_set_switch' => array( - 'render element' => 'form', - 'file' => 'shortcut.admin.inc', - ), 'shortcut_set_customize' => array( 'render element' => 'form', 'file' => 'shortcut.admin.inc', |