You are here

function me_variable_get in me aliases 6.2

Same name and namespace in other branches
  1. 8 me.module \me_variable_get()
  2. 6 me.module \me_variable_get()
  3. 7 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.

10 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 in ./me.module
Implementation of hook_user().
_me_check_arg in ./me.module
A Helper function to check for the 'me' alias.

... See full list

File

./me.module, line 141
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]);
}