function gravatar_var in Gravatar integration 5
Same name and namespace in other branches
- 6 gravatar.module \gravatar_var()
- 7 gravatar.module \gravatar_var()
Internal implementation of variable_get().
4 calls to gravatar_var()
- gravatar_admin_settings in ./
gravatar.module - Administration settings form.
- gravatar_comment in ./
gravatar.module - Implementation of hook_comment().
- gravatar_requirements in ./
gravatar.install - Implementation of hook_requirements().
- _gravatar_get_gravatar in ./
gravatar.module - Generate a gravatar URL.
File
- ./
gravatar.module, line 398 - Integrates gravatar service for comment user pictures.
Code
function gravatar_var($name) {
static $defaults = NULL;
if (!isset($defaults)) {
$defaults = gravatar_variables();
}
$name = 'gravatar_' . $name;
// @todo Remove when stable.
if (!isset($defaults[$name])) {
watchdog('gravatar', t('Default variable for %variable not found.', array(
'%variable' => $name,
)), WATCHDOG_WARNING);
}
return variable_get($name, isset($defaults[$name]) ? $defaults[$name] : NULL);
}