Issue #1161964 by arcaneadam: Fixed hook_system_themes_page_alter() documentation is incorrect.
parent
6bf6ee29fc
commit
14d2ba86be
|
@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue