You are here

function variable_multiple_get_default in Variable 7.2

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

Get defaults for multiple variable

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

File

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

Code

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