You are here

function responsive_menus_sidr_style_js_settings in Responsive Menus 7

JS callback from hook_responsive_menus_style_info().

1 string reference to 'responsive_menus_sidr_style_js_settings'
responsive_menus_responsive_menus_style_info in ./responsive_menus.module
Implements hook_responsive_menus_style_info().

File

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

Code

function responsive_menus_sidr_style_js_settings($js_defaults = array()) {
  $js_settings = array(
    'selectors' => responsive_menus_explode_list('responsive_menus_sidr_css_selectors', '#main-menu', $js_defaults),
    'trigger_txt' => responsive_menus_var_get('responsive_menus_sidr_trigger_txt', t('Menu'), $js_defaults),
    'side' => responsive_menus_var_get('responsive_menus_sidr_menu_side', array(
      'left' => 'Left',
    ), $js_defaults),
    'speed' => responsive_menus_var_get('responsive_menus_sidr_animation_speed', 200, $js_defaults),
    'media_size' => responsive_menus_var_get('responsive_menus_sidr_media_size', 768, $js_defaults),
    'displace' => responsive_menus_var_get('responsive_menus_sidr_displace', 1, $js_defaults),
    'renaming' => responsive_menus_var_get('responsive_menus_sidr_renaming', 1, $js_defaults),
    'onOpen' => responsive_menus_var_get('responsive_menus_sidr_on_open', '', $js_defaults),
    'onClose' => responsive_menus_var_get('responsive_menus_sidr_on_close', '', $js_defaults),
  );
  return $js_settings;
}