You are here

function responsive_menus_var_get in Responsive Menus 7

Slight modification of variable_get for context and other usage.

Parameters

string $name: Name of the variable.

mixed $default: The variable's default fallback value.

array $rm_defaults: The array of values that context (and possibly others) will pass.

8 calls to responsive_menus_var_get()
responsive_menus_codrops_responsive_multi_style_js_settings in ./responsive_menus.module
JS callback from hook_responsive_menus_style_info().
responsive_menus_context_options_form in includes/context/responsive_menus_context.inc
Options form callack for context integration.
responsive_menus_explode_list in ./responsive_menus.module
Return array of selectors for JS settings.
responsive_menus_google_nexus_style_js_settings in ./responsive_menus.module
JS callback from hook_responsive_menus_style_info().
responsive_menus_mean_menu_style_js_settings in ./responsive_menus.module
JS callback from hook_responsive_menus_style_info().

... See full list

File

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

Code

function responsive_menus_var_get($name, $default, $rm_defaults = array()) {
  if (!empty($rm_defaults) && !empty($rm_defaults[$name])) {
    return $rm_defaults[$name];
  }
  return variable_get($name, $default);
}