You are here

function me_variable_get in me aliases 7

Same name and namespace in other branches
  1. 8 me.module \me_variable_get()
  2. 6.2 me.module \me_variable_get()
  3. 6 me.module \me_variable_get()

Helper function to keep all the variable gets in one place.

Parameters

$name: The variable we wish to retrieve.

Return value

mixed The value of the requested variable.

11 calls to me_variable_get()
me_admin_settings_form in ./me.module
Form callback for the admin settings form.
me_handler in ./me.module
A special menu callback function that either redirects to a page with the uid in the path, or calls the real menu handler.
me_to_arg in ./me.module
Menu to_arg function for %me.
me_user_categories in ./me.module
Implements hook_user_categories().
me_user_view in ./me.module
Implements hook_user_view().

... See full list

File

./me.module, line 91
Provides 'me' aliases to allow users to enter 'me' in common paths instead of their user id.

Code

function me_variable_get($name) {
  static $defaults = array(
    'me_alias' => 'me',
    'me_case_insensitive' => FALSE,
    'me_redirect' => FALSE,
    'me_path_rule' => ME_PATH_EXCLUDE,
    'me_paths' => '',
    'me_redirect_anonymous' => '',
    'me_theme_menu_item_link' => '',
    'me_rewrite_link' => TRUE,
    'me_user_override' => FALSE,
  );
  return variable_get($name, $defaults[$name]);
}