Commit 30418849 authored by Alex Weber's avatar Alex Weber

Issue #1839724 by alexweber: Added Make 'Browse available tokens.' open in a jquery ui popup.

parent 2cb7a101
......@@ -456,8 +456,7 @@ function menu_token_form_menu_edit_item_alter(&$form, &$form_state) {
$form['menu_token_replacement_patterns'] = array(
'#type' => 'fieldset',
'#title' => t('Replacement patterns'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#collapsible' => FALSE,
'#weight' => -1,
'#states' => array(
'visible' => array(
......@@ -469,6 +468,7 @@ function menu_token_form_menu_edit_item_alter(&$form, &$form_state) {
$form['menu_token_replacement_patterns']['patterns'] = array(
'#theme' => 'token_tree',
'#token_types' => array_keys($types),
'#dialog' => TRUE,
);
// Add custom validation and submit functions.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment