Block-specific Superfish settings could be found at !link
', array('!link' => l('admin/structure/block', 'admin/structure/block')));
break;
}
return $output;
}
/**
* Implements hook_block_info().
*/
function superfish_block_info() {
$blocks = array();
$number = variable_get('superfish_number', 4);
for ($i = 1; $i <= $number; $i++) {
$blocks[$i] = array(
'info' => variable_get('superfish_name_' . $i, 'Superfish ' . $i) . ' (Superfish)',
'cache' => DRUPAL_NO_CACHE,
);
}
return $blocks;
}
/**
* Implements hook_block_configure().
*/
function superfish_block_configure($delta = 0) {
$form = array();
$form['superfish_name_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Block description'),
'#description' => t('A brief description of your block. Used on the !link', array('!link' => l(t('Blocks administration page'), 'admin/structure/block'))),
'#default_value' => variable_get('superfish_name_' . $delta, 'Superfish ' . $delta),
);
$form['sf-menu'] = array(
'#type' => 'fieldset',
'#title' => t('Menu'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['sf-menu']['superfish_menu_' . $delta] = array(
'#type' => 'select',
'#title' => t('Menu parent'),
'#description' => t('The menu you want to be displayed using Superfish.') . ' (' . t('Default') . ': <Main menu>)',
'#default_value' => variable_get('superfish_menu_' . $delta, 'main-menu:0'),
'#options' => menu_parent_options(menu_get_menus(), array('mlid' => 0)),
);
$form['sf-menu']['superfish_depth_' . $delta] = array(
'#type' => 'select',
'#title' => t('Menu depth'),
'#description' => t('The number of child levels starting with the parent selected above. -1 means all of them, 0 means none of them.') . ' (' . t('Default') . ': -1)',
'#default_value' => variable_get('superfish_depth_' . $delta, -1),
'#options' => drupal_map_assoc(range(-1, 50)),
);
$form['sf-menu']['superfish_expanded_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Take "Expanded" option into effect.'),
'#description' => t('By enabling this option, only parent menu items with Expanded option enabled will have their submenus appear.') . ' (' . t('Default') . ': ' . t('disabled') . ')',
'#default_value' => variable_get('superfish_expanded_' . $delta, 0),
);
$form['sf-settings'] = array(
'#type' => 'fieldset',
'#title' => t('Superfish settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['sf-settings']['superfish_type_' . $delta] = array(
'#type' => 'select',
'#title' => t('Menu type'),
'#description' => '(' . t('Default') . ': ' . t('Horizontal') . ')',
'#default_value' => variable_get('superfish_type_' . $delta, 'horizontal'),
'#options' => array(
'horizontal' => t('Horizontal'),
'vertical' => t('Vertical'),
'navbar' => t('NavBar'),
),
);
$form['sf-settings']['superfish_style_' . $delta] = array(
'#type' => 'select',
'#title' => t('Style'),
'#description' => '(' . t('Default') . ': ' . t('None') . ')',
'#default_value' => variable_get('superfish_style_' . $delta, 'none'),
'#options' => superfish_styles(),
);
$form['sf-settings']['superfish_speed_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Animation speed'),
'#description' => t('The speed of the animation either in milliseconds or pre-defined values (slow, normal, fast).') . ' (' . t('Default') . ': fast)',
'#default_value' => variable_get('superfish_speed_' . $delta, 'fast'),
'#size' => 15,
'#required' => TRUE,
);
$form['sf-settings']['superfish_delay_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Mouse delay'),
'#description' => t('The delay in milliseconds that the mouse can remain outside a sub-menu without it closing.') . ' (' . t('Default') . ': 800)',
'#default_value' => variable_get('superfish_delay_' . $delta, 800),
'#size' => 15,
);
$form['sf-settings']['superfish_pathclass_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Path class'),
'#description' => t('The class you have applied to list items that lead to the current page.') . ' (' . t('Default') . ': active-trail) ' . t('Change this only if you are totally sure of what you are doing.'),
'#default_value' => variable_get('superfish_pathclass_' . $delta, 'active-trail'),
'#size' => 15,
);
$form['sf-settings']['superfish_pathlevels_' . $delta] = array(
'#type' => 'select',
'#title' => t('Path levels'),
'#description' => t('The amount of sub-menu levels that remain open or are restored using Path class.') . ' (' . t('Default') . ': 1)',
'#default_value' => variable_get('superfish_pathlevels_' . $delta, 1),
'#options' => drupal_map_assoc(range(0, 10)),
);
$form['sf-settings']['superfish_slide_' . $delta] = array(
'#type' => 'select',
'#title' => t('Slide-in effect'),
'#description' => '(' . t('Default') . ': ' . t('Vertical') . ') ' . ((count(superfish_effects()) == 4) ? t('jQuery Easing plugin is not installed.') . ' ' . t('The plugin provides a handful number of animation effects, they can be used by uploading the \'jquery.easing.js\' file to the libraries directory within the \'easing\' directory (for example: sites/all/libraries/easing/jquery.easing.js). Refresh this page after the plugin is uploaded, this will make more effects available in the above list.') . ' ' : '') . '' . t('Important') . ': ' . t('Easing effects require jQuery 1.6.1 or higher. If you need to update your jQuery to version 1.6.1 or higher, please use the jQuery Update module.'),
'#default_value' => variable_get('superfish_slide_' . $delta, 'vertical'),
'#options' => superfish_effects(),
);
$form['sf-settings']['superfish_arrow_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Auto-arrows'),
'#default_value' => variable_get('superfish_arrow_' . $delta, 1),
);
$form['sf-settings']['superfish_shadow_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Drop shadows'),
'#default_value' => variable_get('superfish_shadow_' . $delta, 1),
);
$form['sf-settings']['sf-more'] = array(
'#type' => 'fieldset',
'#title' => t('More options'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['sf-settings']['sf-more']['superfish_use_link_theme_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Use a theme function for hyperlinks.') . ' (' . t('Default') . ': ' . t('enabled') . ') ' . t('(Disabling this feature can result in performance improvements, depending on the number of hyperlinks in the menu.)') . '',
'#default_value' => variable_get('superfish_use_link_theme_' . $delta, 1),
);
$form['sf-settings']['sf-more']['superfish_use_item_theme_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Use a theme function for menu items.') . ' (' . t('Default') . ': ' . t('enabled') . ') ' . t('(Disabling this feature can result in performance improvements, depending on the number of items in the menu.)') . '',
'#default_value' => variable_get('superfish_use_item_theme_' . $delta, 1),
);
$form['sf-plugins'] = array(
'#type' => 'fieldset',
'#title' => t('Superfish plugins'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['sf-plugins']['superfish_bgf_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Use jQuery BgiFrame plugin for this menu.'),
'#description' => t('Helps ease the pain when having to deal with IE z-index issues.') . ' (' . t('Default') . ': ' . t('disabled') . ')',
'#default_value' => variable_get('superfish_bgf_' . $delta, 0),
);
$form['sf-plugins']['superfish_spp_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Use jQuery Supposition plugin for this menu.') . ' (' . t('Beta') . ')',
'#description' => t('Relocates sub-menus when they would otherwise appear outside the browser window area.') . ' (' . t('Default') . ': ' . t('enabled') . ')',
'#default_value' => variable_get('superfish_spp_' . $delta, 1),
);
$form['sf-plugins']['superfish_hid_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Enable hoverIntent detection.'),
'#description' => t('Prevents accidental firing of animations by waiting until the user\'s mouse slows down enough, hence determinig user\'s intent.') . ' (' . t('Default') . ': ' . t('enabled') . ')',
'#default_value' => variable_get('superfish_hid_' . $delta, 1),
);
$form['sf-plugins']['sf-touchscreen'] = array(
'#type' => 'fieldset',
'#title' => t('sf-Touchscreen') . ' (' . t('Beta') . ')',
'#description' => t('sf-Touchscreen provides touchscreen compatibility for your menus.') . ' (' . t('The first click on a parent hyperlink shows its children and the second click opens the hyperlink.') . ')',
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['sf-plugins']['sf-touchscreen']['superfish_touch_' . $delta] = array(
'#type' => 'radios',
'#default_value' => variable_get('superfish_touch_' . $delta, 0),
'#options' => array(
0 => t('Disable') . '. (' . t('Default') . ')',
1 => t('Enable jQuery sf-Touchscreen plugin for this menu.'),
2 => t('Enable jQuery sf-Touchscreen plugin for this menu depending on the user\'s Web browser window width.'),
3 => t('Enable jQuery sf-Touchscreen plugin for this menu depending on the user\'s Web browser user agent.'),
),
);
$form['sf-plugins']['sf-touchscreen']['sf-touchscreen-windowwidth'] = array(
'#type' => 'fieldset',
'#title' => t('Window width settings'),
'#description' => t('sf-Touchscreen will be enabled only if the width of user\'s Web browser window is smaller than the below value.') . '
' . t('Please note that in most cases such a meta tag is necessary for this feature to work properly:') . ' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['sf-plugins']['sf-touchscreen']['sf-touchscreen-windowwidth']['superfish_touchbp_' . $delta] = array(
'#type' => 'textfield',
'#description' => t('Also known as "Breakpoint".') . ' (' . t('Default') . ': 768)',
'#default_value' => variable_get('superfish_touchbp_' . $delta, 768),
'#field_suffix' => t('pixels'),
'#size' => 10,
);
$form['sf-plugins']['sf-touchscreen']['sf-touchscreen-useragent'] = array(
'#type' => 'fieldset',
'#title' => t('User agent settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['sf-plugins']['sf-touchscreen']['sf-touchscreen-useragent']['superfish_touchua_' . $delta] = array(
'#type' => 'radios',
'#default_value' => variable_get('superfish_touchua_' . $delta, 0),
'#options' => array(
0 => t('Use the pre-defined list of the user agents.') . '(' . t('Default') . ') (' . t('Recommended') . ')',
1 => t('Use the custom list of the user agents.'),
),
);
$form['sf-plugins']['sf-touchscreen']['sf-touchscreen-useragent']['superfish_touchual_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Custom list of the user agents'),
'#description' => t('Could be partial or complete. (Asterisk separated)') . ' (' . t('Default') . ': ' . t('empty') . ') ' . t('Examples') . ':
iPhone*Android*iPad (' . t('Recommended') . ')
Mozilla/5.0 (webOS/1.4.0; U; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Version/1.0 Safari/532.2 Pre/1.0 * Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405
' . ((isset($_SERVER['HTTP_USER_AGENT'])) ? ' ' . t('UA string of the current Web browser:') . ' ' . $_SERVER['HTTP_USER_AGENT'] : ''),
'#default_value' => variable_get('superfish_touchual_' . $delta, ''),
'#size' => 100,
'#maxlength' => 2000,
);
$form['sf-plugins']['sf-touchscreen']['sf-touchscreen-useragent']['superfish_touchuam_' . $delta] = array(
'#type' => 'select',
'#title' => t('User agent detection method'),
'#description' => '(' . t('Default') . ': ' . t('Client-side (JavaScript)') . ')',
'#default_value' => variable_get('superfish_touchuam_' . $delta, 0),
'#options' => array(
0 => t('Client-side (JavaScript)'),
1 => t('Server-side (PHP)')
),
);
$form['sf-plugins']['sf-smallscreen'] = array(
'#type' => 'fieldset',
'#title' => t('sf-Smallscreen') . ' (' . t('Beta') . ')',
'#description' => t('sf-Smallscreen provides small-screen compatibility for your menus.') . ' (' . t('Converts the dropdown into a <select> element.') . ')',
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['sf-plugins']['sf-smallscreen']['superfish_small_' . $delta] = array(
'#type' => 'radios',
'#default_value' => variable_get('superfish_small_' . $delta, 2),
'#options' => array(
0 => t('Disable') . '.',
1 => t('Enable jQuery sf-Smallscreen plugin for this menu.'),
2 => t('Enable jQuery sf-Smallscreen plugin for this menu depending on the user\'s Web browser window width.') . ' (' . t('Default') . ')',
3 => t('Enable jQuery sf-Smallscreen plugin for this menu depending on the user\'s Web browser user agent.'),
),
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-windowwidth'] = array(
'#type' => 'fieldset',
'#title' => t('Window width settings'),
'#description' => t('sf-Smallscreen will be enabled only if the width of user\'s Web browser window is smaller than the below value.') . '
' . t('Please note that in most cases such a meta tag is necessary for this feature to work properly:') . ' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-windowwidth']['superfish_smallbp_' . $delta] = array(
'#type' => 'textfield',
'#description' => t('Also known as "Breakpoint".') . ' (' . t('Default') . ': 768)',
'#default_value' => variable_get('superfish_smallbp_' . $delta, 768),
'#field_suffix' => t('pixels'),
'#size' => 10,
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-useragent'] = array(
'#type' => 'fieldset',
'#title' => t('User agent settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-useragent']['superfish_smallua_' . $delta] = array(
'#type' => 'radios',
'#default_value' => variable_get('superfish_smallua_' . $delta, 0),
'#options' => array(
0 => t('Use the pre-defined list of the user agents.') . '(' . t('Default') . ') (' . t('Recommended') . ')',
1 => t('Use the custom list of the user agents.'),
),
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-useragent']['superfish_smallual_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Custom list of the user agents'),
'#description' => t('Could be partial or complete. (Asterisk separated)') . ' (' . t('Default') . ': ' . t('empty') . ') ' . t('Examples') . ':
iPhone*Android*iPad (' . t('Recommended') . ')
Mozilla/5.0 (webOS/1.4.0; U; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Version/1.0 Safari/532.2 Pre/1.0 * Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405
' . ((isset($_SERVER['HTTP_USER_AGENT'])) ? ' ' . t('UA string of the current Web browser:') . ' ' . $_SERVER['HTTP_USER_AGENT'] : ''),
'#default_value' => variable_get('superfish_smallual_' . $delta, ''),
'#size' => 100,
'#maxlength' => 2000,
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-useragent']['superfish_smalluam_' . $delta] = array(
'#type' => 'select',
'#title' => t('User agent detection method:'),
'#description' => '(' . t('Default') . ': ' . t('Client-side (JavaScript)') . ')',
'#default_value' => variable_get('superfish_smalluam_' . $delta, 0),
'#options' => array(
0 => t('Client-side (JavaScript)'),
1 => t('Server-side (PHP)')
),
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select'] = array(
'#type' => 'fieldset',
'#title' => t('<select> settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select']['superfish_smallset_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('<select> title'),
'#description' => t('By default the first item in the <select> element will be the name of the parent menu or the title of this block, you can change this by setting a custom title.') . ' (' . t('Default') . ': ' . t('empty') . ') ' . t('Example') . ': - ' . t('Main Menu') . ' - .',
'#default_value' => variable_get('superfish_smallset_' . $delta, ''),
'#size' => 50,
'#maxlength' => 500,
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select']['superfish_smallasa_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Add selected attribute to the <option> element with the class active'),
'#description' => t('Makes pre-selected the item linked to the active page when the page loads.'),
'#default_value' => variable_get('superfish_smallasa_' . $delta, 0),
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select']['sf-smallscreen-select-more'] = array(
'#type' => 'fieldset',
'#title' => t('More'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select']['sf-smallscreen-select-more']['superfish_smallcmc_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Copy the main <ul> classes to the <select>.'),
'#description' => ' (' . t('Default') . ': ' . t('disabled') . ')',
'#default_value' => variable_get('superfish_smallcmc_' . $delta, 0),
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select']['sf-smallscreen-select-more']['superfish_smallecm_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Exclude these classes from the <select> element'),
'#description' => t('Comma separated') . ' (' . t('Default') . ': ' . t('empty') . ')',
'#default_value' => variable_get('superfish_smallecm_' . $delta, ''),
'#size' => 100,
'#maxlength' => 1000,
'#states' => array(
'enabled' => array(
':input[name="superfish_smallcmc_' . $delta . '"]' => array('checked' => TRUE),
),
),
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select']['sf-smallscreen-select-more']['superfish_smallchc_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Copy the hyperlink classes to the <option> elements of the <select>.'),
'#description' => ' (' . t('Default') . ': ' . t('disabled') . ')',
'#default_value' => variable_get('superfish_smallchc_' . $delta, 0),
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select']['sf-smallscreen-select-more']['superfish_smallech_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Exclude these classes from the <option> elements of the <select>'),
'#description' => t('Comma separated') . ' (' . t('Default') . ': ' . t('empty') . ')',
'#default_value' => variable_get('superfish_smallech_' . $delta, ''),
'#size' => 100,
'#maxlength' => 1000,
'#states' => array(
'enabled' => array(
':input[name="superfish_smallchc_' . $delta . '"]' => array('checked' => TRUE),
),
),
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select']['sf-smallscreen-select-more']['superfish_smallicm_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Include these classes in the <select> element'),
'#description' => t('Comma separated') . ' (' . t('Default') . ': ' . t('empty') . ')',
'#default_value' => variable_get('superfish_smallicm_' . $delta, ''),
'#size' => 100,
'#maxlength' => 1000,
);
$form['sf-plugins']['sf-smallscreen']['sf-smallscreen-select']['sf-smallscreen-select-more']['superfish_smallich_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Include these classes in the <option> elements of the <select>'),
'#description' => t('Comma separated') . ' (' . t('Default') . ': ' . t('empty') . ')',
'#default_value' => variable_get('superfish_smallich_' . $delta, ''),
'#size' => 100,
'#maxlength' => 1000,
);
$form['sf-plugins']['sf-supersubs'] = array(
'#type' => 'fieldset',
'#title' => t('Supersubs'),
'#description' => t('Supersubs makes it possible to define custom widths for your menus.'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['sf-plugins']['sf-supersubs']['superfish_supersubs_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Enable Supersubs for this menu.'),
'#default_value' => variable_get('superfish_supersubs_' . $delta, 1),
);
$form['sf-plugins']['sf-supersubs']['superfish_minwidth_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Minimum width'),
'#description' => t('Minimum width for sub-menus, in em units.') . ' (' . t('Default') . ': 12)',
'#default_value' => variable_get('superfish_minwidth_' . $delta, '12'),
'#size' => 20,
'#required' => TRUE,
);
$form['sf-plugins']['sf-supersubs']['superfish_maxwidth_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Maximum width'),
'#description' => t('Maximum width for sub-menus, in em units.') . ' (' . t('Default') . ': 27)',
'#default_value' => variable_get('superfish_maxwidth_' . $delta, '27'),
'#size' => 20,
'#required' => TRUE,
);
$form['sf-megamenu'] = array(
'#type' => 'fieldset',
'#title' => t('Multi-column sub-menus') . ' (' . t('Beta') . ')',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['sf-megamenu']['superfish_multicolumn_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Enable multi-column sub-menus.'),
'#default_value' => variable_get('superfish_multicolumn_' . $delta, 0),
);
$form['sf-megamenu']['superfish_mcexclude_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Exclude below menu items'),
'#description' => t('Enter the ID number of the parent menu item you do not want multi-column sub-menus for. (Comma separated)') . ' (' . t('Default') . ': ' . t('empty') . ') ' . t('Example') . ': 5,10,20',
'#default_value' => variable_get('superfish_mcexclude_' . $delta, ''),
'#size' => 50,
);
$form['sf-megamenu']['superfish_mcdepth_' . $delta] = array(
'#type' => 'select',
'#title' => t('Start from depth'),
'#description' => t('The depth of the first instance of multi-column sub-menus.') . ' (' . t('Default') . ': 1)',
'#default_value' => variable_get('superfish_mcdepth_' . $delta, 1),
'#options' => drupal_map_assoc(range(1, 10)),
);
$form['sf-megamenu']['superfish_mclevels_' . $delta] = array(
'#type' => 'select',
'#title' => t('Levels'),
'#description' => t('The amount of sub-menu levels that will be included in the multi-column sub-menu.') . ' (' . t('Default') . ': 1)',
'#default_value' => variable_get('superfish_mclevels_' . $delta, 1),
'#options' => drupal_map_assoc(range(1, 10)),
);
$form['sf-advanced-html'] = array(
'#type' => 'fieldset',
'#title' => t('Advanced HTML settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['sf-advanced-html']['sf-hyperlinks'] = array(
'#type' => 'fieldset',
'#title' => t('Hyperlinks'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['sf-advanced-html']['sf-hyperlinks']['superfish_hhldescription_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Hide hyperlink descriptions ("title" attribute)') . ' (' . t('Default') . ': ' . t('disabled') . ')',
'#description' => t('(Enabling this feature makes the below settings ineffective.)'),
'#default_value' => variable_get('superfish_hhldescription_' . $delta, 0),
);
$form['sf-advanced-html']['sf-hyperlinks']['sf-hyperlinktexts'] = array(
'#type' => 'fieldset',
'#title' => t('Hyperlink texts'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['sf-advanced-html']['sf-hyperlinks']['sf-hyperlinktexts']['superfish_hldescription_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Insert hyperlink descriptions ("title" attribute) into hyperlink texts.'),
'#default_value' => variable_get('superfish_hldescription_' . $delta, 0),
);
$form['sf-advanced-html']['sf-hyperlinks']['sf-hyperlinktexts']['superfish_hldmenus_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Limit to below menu items'),
'#description' => t('Enter menu item ID\'s. Leave empty to include all menus. (Comma separated)') . ' (' . t('Default') . ': ' . t('empty') . ') ' . t('Example') . ': 5,10,20',
'#default_value' => variable_get('superfish_hldmenus_' . $delta, ''),
'#size' => 50,
);
$form['sf-advanced-html']['sf-hyperlinks']['sf-hyperlinktexts']['superfish_hldexclude_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Exclude below menu items'),
'#description' => t('Enter the ID of the menu items you do not want to link descriptions for. (Comma separated)') . ' (' . t('Default') . ': ' . t('empty') . ') ' . t('Example') . ': 5,10,20',
'#default_value' => variable_get('superfish_hldexclude_' . $delta, ''),
'#size' => 50,
);
$form['sf-advanced-html']['sf-html-wrappers'] = array(
'#type' => 'fieldset',
'#title' => t('HTML wrappers'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['sf-advanced-html']['sf-html-wrappers']['superfish_wrapmul_' . $delta] = array(
'#type' => 'textfield',
'#title' => t('Around the main <UL>'),
'#description' => t('Insert extra codes before and\or after the main UL. (Comma separated).') . ' (' . t('Default') . ': ' . t('empty') . ') ' . t('Examples') . ':