function theme_trigger_display

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 trigger.admin.inc theme_trigger_display($variables)
cle7 trigger.admin.inc theme_trigger_display($variables)
elmsmedia7 trigger.admin.inc theme_trigger_display($variables)
icor7 trigger.admin.inc theme_trigger_display($variables)
meedjum_blog7 trigger.admin.inc theme_trigger_display($variables)
mooc7 trigger.admin.inc theme_trigger_display($variables)

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

Parameters

$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 modules/trigger/trigger.admin.inc
Returns the form for assigning an action to a trigger.
trigger_theme in modules/trigger/trigger.module
Implements hook_theme().

File

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

Code

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(
        check_plain($info['label']),
        $info['link'],
      );
    }
  }

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

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.