From c05f2181dc8556cb6700e8c6bb6e6ded43273192 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 9 Oct 2009 01:00:08 +0000 Subject: - Patch #572618 by effulgentsia, pwolanin, sun: all theme functions should take a single argument. Code clean-up and performance improvement. Woot. --- modules/trigger/trigger.admin.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'modules/trigger/trigger.admin.inc') diff --git a/modules/trigger/trigger.admin.inc b/modules/trigger/trigger.admin.inc index 9db7a928f..e3350f80c 100644 --- a/modules/trigger/trigger.admin.inc +++ b/modules/trigger/trigger.admin.inc @@ -255,14 +255,18 @@ function trigger_assign_form_submit($form, $form_state) { /** * Displays actions assigned to this hook in a table. * - * @param array $element - * The fieldset including all assigned actions. + * @param $variables + * An associative array containing: + * - element: The fieldset including all assigned actions. + * * @return * The rendered form with the table prepended. * * @ingroup themeable */ -function theme_trigger_display($element) { +function theme_trigger_display($variables) { + $element = $variables['element']; + $header = array(); $rows = array(); if (isset($element['assigned']) && count($element['assigned']['#value'])) { @@ -277,7 +281,7 @@ function theme_trigger_display($element) { } if (count($rows)) { - $output = theme('table', $header, $rows) . drupal_render_children($element); + $output = theme('table', array('header' => $header, 'rows' => $rows)) . drupal_render_children($element); } else { $output = drupal_render_children($element); -- cgit v1.2.3