function skinr_test_menu in Skinr 8.2
Same name and namespace in other branches
- 7.2 tests/skinr_test/skinr_test.module \skinr_test_menu()
Implements hook_menu().
File
- tests/
modules/ skinr_test/ skinr_test.module, line 15 - Skinr testing module.
Code
function skinr_test_menu() {
$items['skinr-test/current-theme-default'] = array(
'title' => 'Test skinr_current_theme()',
'page callback' => 'skinr_test_skinr_current_theme',
'access arguments' => array(
'access content',
),
);
$items['skinr-test/current-theme-callback'] = array(
'title' => 'Test skinr_current_theme() with \'theme callback\'',
'page callback' => 'skinr_test_skinr_current_theme',
'access arguments' => array(
'access content',
),
'theme callback' => 'skinr_test_skinr_current_theme_callback',
);
$items['skinr-test/current-theme-hook-custom-theme'] = array(
'title' => 'Test skinr_current_theme() with hook_custom_theme()',
'page callback' => 'skinr_test_skinr_current_theme',
'access arguments' => array(
'access content',
),
);
$items['admin/skinr-test/current-theme-admin'] = array(
'title' => 'Test skinr_current_theme() for admin theme',
'page callback' => 'skinr_test_skinr_current_theme',
'access arguments' => array(
'access content',
),
);
$items['admin/skinr-test/current-theme-admin-exclude'] = array(
'title' => 'Test skinr_current_theme() excluding admin theme',
'page callback' => 'skinr_test_skinr_current_theme_admin_exclude',
'access arguments' => array(
'access content',
),
);
$items['skinr-test/hook-dynamic-loading'] = array(
'title' => 'Test hook dynamic loading (skinr_hook)',
'page callback' => 'skinr_test_hook_dynamic_loading',
'access arguments' => array(
'access content',
),
);
$items['skinr-test/skinr-implements-api'] = array(
'title' => 'Test skinr_implements_api()',
'page callback' => 'skinr_test_skinr_implements_api',
'access arguments' => array(
'access content',
),
);
return $items;
}