Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 6

i18n_array_variable_get

Definition

i18n_array_variable_get($name, $element, $default = NULL)
contributions/i18n/i18n.module, line 766

Description

Utility. Get part of array variable

Related topics

Namesort iconDescription
Extended language APIThis is an extended language API to be used by modules in i18n package.

Code

<?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;
  }  
}
?>