You are here

function responsive_menus_codrops_responsive_multi_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_codrops_responsive_multi_style_settings'
responsive_menus_responsive_menus_style_info in ./responsive_menus.module
Implements hook_responsive_menus_style_info().

File

./responsive_menus.module, line 685
Responsify menus in Drupal.

Code

function responsive_menus_codrops_responsive_multi_style_settings() {
  $form['responsive_menus_codrops_responsive_multi_css_selectors'] = array(
    '#type' => 'textfield',
    '#title' => t('CSS selectors for which menu to responsify'),
    '#default_value' => variable_get('responsive_menus_codrops_responsive_multi_css_selectors', '#main-menu'),
    '#description' => t('Enter CSS/jQuery selector of menus to responsify.'),
  );
  $form['responsive_menus_codrops_responsive_multi_media_size'] = array(
    '#type' => 'textfield',
    '#title' => t('Screen width to respond to'),
    '#size' => 5,
    '#default_value' => variable_get('responsive_menus_codrops_responsive_multi_media_size', 768),
    '#description' => t('Width in pixels when we swap out responsive menu e.g. 768'),
  );
  $form['responsive_menus_codrops_responsive_multi_ani_in'] = array(
    '#type' => 'select',
    '#title' => t('In-animation'),
    '#options' => array(
      'dl-animate-in-1' => t('One'),
      'dl-animate-in-2' => t('Two'),
      'dl-animate-in-3' => t('Three'),
      'dl-animate-in-4' => t('Four'),
      'dl-animate-in-5' => t('Five'),
    ),
    '#default_value' => variable_get('responsive_menus_codrops_responsive_multi_ani_in', 'dl-animate-in-1'),
  );
  $form['responsive_menus_codrops_responsive_multi_ani_out'] = array(
    '#type' => 'select',
    '#title' => t('Out-animation'),
    '#options' => array(
      'dl-animate-out-1' => t('One'),
      'dl-animate-out-2' => t('Two'),
      'dl-animate-out-3' => t('Three'),
      'dl-animate-out-4' => t('Four'),
      'dl-animate-out-5' => t('Five'),
    ),
    '#default_value' => variable_get('responsive_menus_codrops_responsive_multi_ani_out', 'dl-animate-out-1'),
  );
  return $form;
}