| Versionen | |
|---|---|
| drupal6 – drupal7 | theme_trigger_display($element) |
Display actions assigned to this hook-op combination in a table.
array $element The fieldset including all assigned actions.
The rendered form with the table prepended.
modules/
<?php
function theme_trigger_display($element) {
$header = array();
$rows = array();
if (count($element['assigned']['#value'])) {
$header = array(array('data' => t('Name')), array('data' => t('Operation')));
$rows = array();
foreach ($element['assigned']['#value'] as $aid => $info) {
$rows[] = array(
$info['description'],
$info['link']
);
}
}
if (count($rows)) {
$output = theme('table', $header, $rows) . drupal_render_children($element);
}
else {
$output = drupal_render_children($element);
}
return $output;
}
?>
Kommentare
Kommentar hinzufügen