function _quote_variable_get in Quote 7
Same name and namespace in other branches
- 5 quote.module \_quote_variable_get()
- 6.2 quote.module \_quote_variable_get()
- 6 quote.module \_quote_variable_get()
Return a quote module variable.
Parameters
$name: The name of the variable to retrieve.
Return value
The value of the variable requested.
6 calls to _quote_variable_get()
- quote_comment_view in ./
quote.module - Implements hook_comment_view().
- quote_form_alter in ./
quote.module - Implements hook_form_alter().
- quote_init in ./
quote.module - Implements hook_init().
- quote_node_view in ./
quote.module - Implements hook_node_view().
- quote_settings_form in ./
quote.admin.inc - Menu callback: quote module settings form.
File
- ./
quote.module, line 241 - The quote module provides a filter and appropriate links that allow users to quote nodes and other comments in their own comments.
Code
function _quote_variable_get($name = NULL) {
static $variables = array();
if (empty($variables)) {
$defaults = array(
'node_types' => array(
'blog',
'story',
),
'node_link_display' => 1,
'format' => 0,
'nest' => 2,
);
$variables = variable_get('quote', array());
$variables = array_merge($defaults, $variables);
}
return $name ? $variables[$name] : $variables;
}