function smartmenus_block_configure in Smartmenus.js 7
Implements hook_block_configure().
File
- ./
smartmenus.module, line 83 - Integration with the Smartmenus jQuery plugin for responsive menus.
Code
function smartmenus_block_configure($delta) {
$form['smartmenus'] = array(
'#type' => 'fieldset',
'#title' => t('Smartmenus Settings'),
);
$form['smartmenus']['smartmenus_menu_' . $delta] = array(
'#type' => 'select',
'#title' => t('Menu'),
'#options' => menu_get_menus(),
'#description' => t('The desired menu to render as a Smartmenu.'),
'#default_value' => variable_get('smartmenus_menu_' . $delta, 'main-menu:0'),
);
$form['smartmenus']['smartmenus_toggle_' . $delta] = array(
'#type' => 'checkbox',
'#title' => t('Display a menu toggle button on small screens'),
'#default_value' => variable_get('smartmenus_toggle_' . $delta, TRUE),
);
$form['smartmenus']['smartmenus_orient_' . $delta] = array(
'#type' => 'radios',
'#title' => t('Orientation'),
'#options' => array(
'vertical' => t('Vertical'),
'horizontal' => t('Horizontal'),
),
'#default_value' => variable_get('smartmenus_orient_' . $delta, 'horizontal'),
);
return $form;
}