function _pagerer_get_variable in Pagerer 7
Return a 'pagerer' configuration variable.
Parameters
string $variable: the name of the pagerer configuration variable, or NULL to return the entire array
Return value
string|array value of the requested configuration variable, or the entire array if no variable specified in input
5 calls to _pagerer_get_variable()
- pagerer_example_page in ./
pagerer_example.module - Build the pagerer example.
- pagerer_preset_delete_form_submit in ./
pagerer.admin.inc - Preset delete form - submission.
- pagerer_settings_form in ./
pagerer.admin.inc - Main Pagerer settings admin form.
- _pagerer_override_theme_pager in ./
pagerer.module - Pagerer's wrapper for overriden standard 'pager' theme calls.
- _pagerer_set_variable in ./
pagerer.module - Store a 'pagerer' configuration variable.
1 string reference to '_pagerer_get_variable'
- _pagerer_set_variable in ./
pagerer.module - Store a 'pagerer' configuration variable.
File
- ./
pagerer.module, line 2093 - Pagerer
Code
function _pagerer_get_variable($variable = NULL) {
$vars =& drupal_static(__FUNCTION__);
if (!isset($vars)) {
$vars = variable_get('pagerer', array());
$vars += array(
'core_override_preset' => 'core',
);
}
if ($variable) {
return isset($vars[$variable]) ? $vars[$variable] : NULL;
}
else {
return $vars;
}
}