You are here

function nitro_menu in Arctica Nitro 7

Implements hook_menu().

File

./nitro.module, line 6
Module file for Arctica Nitro.

Code

function nitro_menu() {
  foreach (list_themes() as $theme) {
    $items['admin/appearance/settings/' . $theme->name . '/reset'] = array(
      'title' => $theme->info['name'],
      'page callback' => array(
        'drupal_get_form',
      ),
      'page arguments' => array(
        'nitro_theme_reset_confirm',
        $theme->name,
      ),
      'type' => MENU_CALLBACK,
      'access callback' => '_system_themes_access',
      'access arguments' => array(
        $theme,
      ),
      'file' => 'includes/nitro.admin.inc',
    );
    $items['admin/appearance/settings/' . $theme->name . '/export'] = array(
      'title' => $theme->info['name'],
      'page callback' => array(
        'drupal_get_form',
      ),
      'page arguments' => array(
        'nitro_theme_export',
        $theme->name,
      ),
      'type' => MENU_CALLBACK,
      'access callback' => '_system_themes_access',
      'access arguments' => array(
        $theme,
      ),
      'file' => 'includes/nitro.admin.inc',
    );
  }
  return $items;
}