You are here

function variable_format_multiple in Variable 7

Same name and namespace in other branches
  1. 7.2 variable.variable.inc \variable_format_multiple()

Format multiple variable.

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

File

./variable.variable.inc, line 284
Variable module hook implementations

Code

function variable_format_multiple($variable, $options = array()) {
  $rows = array();
  foreach ($variable['children'] as $name => $child) {
    $rows[$name] = array(
      array(
        'data' => check_plain($child['title']),
        'header' => TRUE,
      ),
      variable_format_value($child),
    );
  }
  return theme('table', array(
    'rows' => $rows,
  ));
}