You are here

function omega_tools_system_themes_page_alter in Omega Tools 7.3

@todo

File

./omega_tools.module, line 194

Code

function omega_tools_system_themes_page_alter(&$info) {
  foreach (array(
    'enabled',
    'disabled',
  ) as $status) {
    if (isset($info[$status])) {
      foreach ($info[$status] as &$item) {
        if (_omega_tools_is_editable($item->name)) {
          $item->operations[] = array(
            'title' => t('Edit'),
            'href' => 'admin/appearance/omega-tools/edit/' . $item->name,
            'attributes' => array(
              'title' => t('This theme belongs to the Omega framework and can be edited.'),
            ),
          );
        }
        $item->operations[] = array(
          'title' => t('Download'),
          'href' => 'admin/appearance/omega-tools/download/' . $item->name,
          'attributes' => array(
            'title' => t('Download an archive of this theme.'),
          ),
        );
      }
    }
  }
}