From 14d2ba86befdbdbaaf34c9be642e60ff78bfccc7 Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 1 Jun 2011 01:34:05 -0700 Subject: [PATCH] Issue #1161964 by arcaneadam: Fixed hook_system_themes_page_alter() documentation is incorrect. --- modules/system/system.api.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system/system.api.php b/modules/system/system.api.php index c7db6f1dda4..ece18aced1b 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -3924,7 +3924,11 @@ function hook_system_themes_page_alter(&$theme_groups) { foreach ($theme_groups as $state => &$group) { foreach ($theme_groups[$state] as &$theme) { // Add a foo link to each list of theme operations. - $theme->operations[] = l(t('Foo'), 'admin/appearance/foo', array('query' => array('theme' => $theme->name))); + $theme->operations[] = array( + 'title' => t('Foo'), + 'href' => 'admin/appearance/foo', + 'query' => array('theme' => $theme->name) + ); } } }