function theme_tripal_core_extensions_form_tables
2.x tripal_core.extensions.inc | theme_tripal_core_extensions_form_tables($variables) |
The theme function for rendering each element's table.
Parameters
$variables:
1 theme call to theme_tripal_core_extensions_form_tables()
- tripal_core_extension_form_add_extensions in tripal_core/
includes/ tripal_core.extensions.inc - Adds each extension to the form.
File
- tripal_core/
includes/ tripal_core.extensions.inc, line 644
Code
function theme_tripal_core_extensions_form_tables($variables) {
$element = $variables['element'];
$headers = array(
array(
'data' => drupal_render($element['header']),
'colspan' => 2,
)
);
$button = array_key_exists('import', $element) ? drupal_render($element['import']) : ' ';
$rows = array(
array(
array(
'data' => drupal_render($element['details']),
),
array(
'data' => $button,
'width' => '5%',
'align' => 'right',
),
),
);
$table = array(
'header' => $headers,
'rows' => $rows,
'attributes' => array(),
'sticky' => FALSE,
'caption' => '',
'colgroups' => array(),
'empty' => '',
);
return theme_table($table);
}