Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
i18n_array_variable_get($name, $element, $default = NULL)
contributions/i18n/i18n.module, line 766
Utility. Get part of array variable
| Name | Description |
|---|---|
| Extended language API | This is an extended language API to be used by modules in i18n package. |
<?php
function i18n_array_variable_get($name, $element, $default = NULL) {
if (($values = variable_get($name, array())) && isset($values[$element])) {
return $values[$element];
} else {
return $default;
}
}
?>