function skinr_ui_menu in Skinr 6.2
Same name and namespace in other branches
- 7.2 skinr_ui.module \skinr_ui_menu()
Implementation of hook_menu().
File
- ./
skinr_ui.module, line 13
Code
function skinr_ui_menu() {
$items['admin/build/skinr'] = array(
'title' => 'Skinr',
'description' => 'Manage your skinr settings and rules, import and export skinr settings for each theme, and configure skinr\'s overlay settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_ui_list',
NULL,
),
'access arguments' => array(
'administer skinr',
),
'file' => 'skinr_ui.admin.inc',
);
$items['admin/build/skinr/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
// Themes.
$items['admin/build/skinr/skins'] = array(
'title' => 'Skins',
'description' => 'Manage which skins are available when changing Skinr settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_ui_skinsets_form',
NULL,
),
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer site configuration',
),
'file' => 'skinr_ui.admin.inc',
);
$items['admin/build/skinr/skins/select'] = array(
'title' => 'List',
'description' => 'Manage your skins.',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -1,
);
$items['admin/build/skinr/skins/settings/%'] = array(
'title' => 'Skin settings',
'description' => 'Manage which options are available for each Skin when changing Skinr settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_ui_skinsets_settings_form',
5,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'skinr_ui.admin.inc',
);
// Rules.
$items['admin/build/skinr/rules'] = array(
'title' => 'Rules',
'page callback' => 'skinr_rules',
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer skinr',
),
'parent' => 'admin/build/skinr',
'weight' => 1,
'file' => 'skinr_ui.rules.inc',
);
$items['admin/build/skinr/rules/add'] = array(
'title' => 'Add rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_rule_edit',
),
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer skinr',
),
'file' => 'skinr_ui.rules.inc',
);
$items['admin/build/skinr/rules/edit'] = array(
'title' => 'Edit rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_rule_edit',
),
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer skinr',
),
'file' => 'skinr_ui.rules.inc',
);
$items['admin/build/skinr/rules/delete'] = array(
'title' => 'Add rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_rule_delete_confirm',
),
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer skinr',
),
'file' => 'skinr_ui.rules.inc',
);
// Import & Export.
$items['admin/build/skinr/import'] = array(
'title' => 'Import',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_ui_import_form',
),
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer skinr',
),
'parent' => 'admin/build/skinr',
'weight' => 2,
'file' => 'skinr_ui.admin.inc',
);
$items['admin/build/skinr/export'] = array(
'title' => 'Export',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_ui_export_form',
),
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer skinr',
),
'parent' => 'admin/build/skinr',
'weight' => 3,
'file' => 'skinr_ui.admin.inc',
);
// Settings.
$items['admin/build/skinr/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_ui_admin_form',
),
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer skinr',
),
'parent' => 'admin/build/skinr',
'weight' => 4,
'file' => 'skinr_ui.admin.inc',
);
// Edit Skinr settings.
$items['admin/build/skinr/edit/%ctools_js/%/%'] = array(
'title' => 'Edit skin',
'title callback' => 'skinr_ui_edit_title',
'title arguments' => array(
5,
6,
),
'page callback' => 'skinr_ui_edit',
'page arguments' => array(
4,
5,
6,
),
// js|nojs, module, sid
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer skinr',
),
);
// Delete Skinr settings.
$items['admin/build/skinr/delete/%/%/%'] = array(
'title' => 'Delete skin',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'skinr_ui_delete_confirm',
4,
5,
6,
),
// theme, module, sid
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer skinr',
),
'file' => 'skinr_ui.admin.inc',
);
// Fetch skin file info through AJAX.
$items['admin/build/skinr/info/%'] = array(
'title' => 'Skinr file information',
'page callback' => 'skinr_ui_skin_get_files',
'page arguments' => array(
4,
),
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer skinr',
),
);
return $items;
}