summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 082807a0c..24643966a 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -2673,6 +2673,23 @@ function hook_page_delivery_callback_alter(&$callback) {
}
/**
+ * Alters theme operation links.
+ *
+ * @param $theme_groups
+ * An associative array containing groups of themes.
+ *
+ * @see system_themes_page()
+ */
+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)));
+ }
+ }
+}
+
+/**
* Alters inbound URL requests.
*
* @param $path