diff --git a/wysiwyg.admin.inc b/wysiwyg.admin.inc index 3a2858e..0cd7763 100644 --- a/wysiwyg.admin.inc +++ b/wysiwyg.admin.inc @@ -135,12 +135,12 @@ function wysiwyg_profile_form($form, &$form_state, $profile) { } $icon = file_exists($img_src) ? '' : ''; } - $title = (isset($meta['url']) ? l($title, $meta['url'], array('target' => '_blank')) : check_plain($title)); - $title = (!empty($icon) ? $icon . ' ' . $title : $title); + $title = (!empty($icon) ? $icon . ' ' . check_plain($title) : check_plain($title)); $form['buttons'][$name][$button] = array( '#type' => 'checkbox', '#title' => $title, '#default_value' => !empty($profile->settings['buttons'][$name][$button]) ? $profile->settings['buttons'][$name][$button] : FALSE, + '#description' => isset($meta['url']) ? l($meta['url'], $meta['url']) : NULL, ); } } @@ -148,8 +148,9 @@ function wysiwyg_profile_form($form, &$form_state, $profile) { foreach ($meta['extensions'] as $extension => $title) { $form['buttons'][$name][$extension] = array( '#type' => 'checkbox', - '#title' => isset($meta['url']) ? l($title, $meta['url'], array('target' => '_blank')) : check_plain($title), + '#title' => check_plain($title), '#default_value' => !empty($profile->settings['buttons'][$name][$extension]) ? $profile->settings['buttons'][$name][$extension] : FALSE, + '#description' => isset($meta['url']) ? l($meta['url'], $meta['url']) : NULL, ); } }