You are here

function skinr_menu in Skinr 6

Implementation of hook_menu().

File

./skinr.module, line 13

Code

function skinr_menu() {
  $items['admin/settings/skinr'] = array(
    'title' => 'Skinr',
    'page callback' => 'skinr_admin',
    'access arguments' => array(
      'administer skinr',
    ),
    'file' => 'skinr.admin.inc',
  );
  $items['admin/settings/skinr/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/settings/skinr/import'] = array(
    'title' => 'Import',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'skinr_import_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer skinr',
    ),
    'parent' => 'admin/settings/skinr',
    'weight' => 1,
    'file' => 'skinr.admin.inc',
  );
  $items['admin/settings/skinr/export'] = array(
    'title' => 'Export',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'skinr_export_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer skinr',
    ),
    'parent' => 'admin/settings/skinr',
    'weight' => 2,
    'file' => 'skinr.admin.inc',
  );
  return $items;
}