function theme_nat_table in Node Auto Term [NAT] 7.2
Same name and namespace in other branches
- 7 nat.admin.inc \theme_nat_table()
Theme table elements within the NAT field configuration form.
Parameters
$variables: Contains an associative array containing the element to be themed.
1 theme call to theme_nat_table()
- nat_fields_form in ./
nat.admin.inc - Menu callback: NAT module fields form. @todo This form is something of a mess and could use a little clean-up.
File
- ./
nat.admin.inc, line 367 - NAT module administrative forms.
Code
function theme_nat_table($variables) {
$element = $variables['element'];
$rows = array();
foreach ($element['rows'] as $id => $value) {
if (is_numeric($id)) {
$rows[$id]['node'] = drupal_render($element['rows'][$id]['node']);
$rows[$id]['term'] = drupal_render($element['rows'][$id]['term']);
}
}
return theme('table', array(
'header' => $element['header']['#value'],
'rows' => $rows,
));
}