You are here

function magic_system_themes_page_alter in Magic 7.2

Implements hook_system_themes_page_alter().

File

./magic.module, line 129
Keep Frontend DRY; sprinkle it with MAGIC!

Code

function magic_system_themes_page_alter(&$info) {
  foreach (array(
    'enabled',
    'disabled',
  ) as $status) {
    if (empty($info[$status])) {
      continue;
    }
    foreach ($info[$status] as &$item) {
      $item->operations[] = array(
        'title' => t('Export'),
        'href' => "admin/appearance/settings/{$item->name}/export",
        'attributes' => array(
          'title' => t('Export theme settings'),
        ),
      );
    }
  }
}