function contentanalysis_menu in Content Analysis 6
Same name and namespace in other branches
- 8 contentanalysis.module \contentanalysis_menu()
- 7 contentanalysis.module \contentanalysis_menu()
Implementation of hook_menu().
File
- ./
contentanalysis.module, line 14
Code
function contentanalysis_menu() {
$items = array();
$items['admin/settings/contentanalysis'] = array(
'title' => 'Content analysis',
'description' => 'Analyze and optimize node content.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'contentanalysis_admin_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'admin content analysis',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'contentanalysis.admin.inc',
);
$items['admin/content/contentanalysis'] = array(
'title' => 'Content analysis',
'page callback' => 'contentanalysis_page_analyzer',
'access callback' => 'user_access',
'access arguments' => array(
'perform content analysis',
),
'type' => MENU_LOCAL_TASK,
);
$items['contentanalysis/analyze_js'] = array(
'title' => '',
'page callback' => 'contentanalysis_analyze_js',
'access arguments' => array(
'perform content analysis',
),
'type' => MENU_CALLBACK,
);
$items['contentanalysis/ajax/analysis'] = array(
'title' => '',
'page callback' => 'contentanalysis_modal_popup',
'access arguments' => array(
'perform content analysis',
),
'type' => MENU_CALLBACK,
);
$items['contentanalysis/ajax/analysis_only'] = array(
'title' => '',
'page callback' => 'contentanalysis_modal_popup_only',
'access arguments' => array(
'perform content analysis',
),
'type' => MENU_CALLBACK,
);
return $items;
}