You are here

function variable_multiple_get_value in Variable 7.2

Same name and namespace in other branches
  1. 7 variable.inc \variable_multiple_get_value()

Get value for multiple variable

1 string reference to 'variable_multiple_get_value'
variable_variable_type_info in ./variable.variable.inc
Implements hook_variable_type_info().

File

./variable.inc, line 261
Variable API module. Extended API.

Code

function variable_multiple_get_value($variable, $options = array()) {
  $variable = variable_build($variable, $options);
  $values = array();
  foreach ($variable['children'] as $child) {
    $values[$child['index']] = variable_get_value($child, $options);
  }
  return $values;
}