function theme_trigger_display

7.x theme_trigger_display($variables)
6.x theme_trigger_display($element)

Returns HTML for the form showing actions assigned to a trigger.


$variables: An associative array containing:

  • element: The fieldset including all assigned actions.

Related topics

2 string references to the theme hook from theme_trigger_display()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

trigger_assign_form in drupal/modules/trigger/
Returns the form for assigning an action to a trigger.
trigger_theme in drupal/modules/trigger/trigger.module
Implements hook_theme().


drupal/modules/trigger/, line 296
Admin page callbacks for the trigger module.


function theme_trigger_display($variables) {
  $element = $variables['element'];

  $header = array();
  $rows = array();
  if (isset($element['assigned']) && 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(

  if (count($rows)) {
    $output = theme('table', array('header' => $header, 'rows' => $rows)) . drupal_render_children($element);
  else {
    $output = drupal_render_children($element);
  return $output;