2 * Implements hook_system_themes_page_alter().
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(
10 'href' => 'admin/appearance/foo',
11 'query' => array('theme' => $theme->name)