722792be4dd0f38e7817667abe6d675e516599a2
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / system_themes_page_alter.twig
1 /**
2  * Implements hook_system_themes_page_alter().
3  */
4 function {{ machine_name }}_system_themes_page_alter(&$theme_groups) {
5   foreach ($theme_groups as $state => &$group) {
6     foreach ($theme_groups[$state] as &$theme) {
7       // Add a foo link to each list of theme operations.
8       $theme->operations[] = array(
9         'title' => t('Foo'),
10         'href' => 'admin/appearance/foo',
11         'query' => array('theme' => $theme->name)
12       );
13     }
14   }
15 }