function responsive_menus_google_nexus_style_settings in Responsive Menus 7
Form callback from hook_responsive_menus_style_info().
Return value
array Drupal FAPI formatted array.
1 string reference to 'responsive_menus_google_nexus_style_settings'
File
- ./
responsive_menus.module, line 867 - Responsify menus in Drupal.
Code
function responsive_menus_google_nexus_style_settings() {
$form['responsive_menus_google_nexus_css_selectors'] = array(
'#type' => 'textfield',
'#title' => t('CSS selectors for which menu to responsify'),
'#default_value' => variable_get('responsive_menus_google_nexus_css_selectors', '#main-menu'),
'#description' => t('Enter CSS/jQuery selector of menus to responsify.'),
);
$form['responsive_menus_google_nexus_use_ecoicons'] = array(
'#type' => 'select',
'#title' => t('Use ecofonts font-family'),
'#options' => array(
1 => t('Yes'),
0 => t('No'),
),
'#default_value' => variable_get('responsive_menus_google_nexus_use_ecoicons', 1),
'#description' => t('Uses the ecofonts font-family included with GoogleNexusWebsiteMenu library for icons.'),
);
$form['responsive_menus_google_nexus_icons'] = array(
'#type' => 'textarea',
'#title' => t('Icons for menu items'),
'#default_value' => variable_get('responsive_menus_google_nexus_icons', "\\ue005\n\\ue006"),
'#description' => t('Enter 1 per-line or comma-separated. See !documentation for examples.', array(
'!documentation' => l(t('Unicode Character Table'), 'http://unicode-table.com/en/'),
)),
);
$form['responsive_menus_google_nexus_icon_fallback'] = array(
'#type' => 'textfield',
'#title' => t('Fallback icon for extra menu items'),
'#default_value' => variable_get('responsive_menus_google_nexus_icon_fallback', ''),
'#description' => t('This icon will be used for any number of menu items beyond the amount of icons you specified above. See !documentation for examples.', array(
'!documentation' => l(t('Unicode Character Table'), 'http://unicode-table.com/en/'),
)),
);
return $form;
}