function addthis_test_menu in AddThis 7.4
Implements hook_menu().
File
- addthis_test/
addthis_test.module, line 17
Code
function addthis_test_menu() {
// Test pages.
// Pages used in the test cases.
$menu_items['addthis/test/1'] = array(
'title' => 'Test no Javascript load',
'type' => MENU_CALLBACK,
'page callback' => 'addthis_test_no_js',
'access arguments' => array(
AddThis::PERMISSION_ADMINISTER_ADDTHIS,
),
'file' => 'includes/addthis.test_pages.inc',
);
$menu_items['addthis/test/2'] = array(
'title' => 'Test Javascript load on preprocess',
'type' => MENU_CALLBACK,
'page callback' => 'addthis_test_with_js',
'access arguments' => array(
AddThis::PERMISSION_ADMINISTER_ADDTHIS,
),
'file' => 'includes/addthis.test_pages.inc',
);
return $menu_items;
}