function boost_menu in Boost 6
Same name and namespace in other branches
- 5 boost.module \boost_menu()
- 7 boost.module \boost_menu()
Implementation of hook_menu().
File
- ./
boost.module, line 831 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function boost_menu() {
$items['admin/settings/performance/default'] = array(
'title' => 'Performance',
'type' => MENU_DEFAULT_LOCAL_TASK,
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/settings/performance/boost'] = array(
'title' => 'Boost Settings',
'description' => 'Advanced boost configuration.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'boost_admin_boost_performance_page',
),
'access arguments' => array(
'administer site configuration',
),
'weight' => 10,
'type' => MENU_LOCAL_TASK,
'file' => 'boost.admin.inc',
);
$items['admin/settings/performance/boost-rules'] = array(
'title' => 'Boost htaccess rules generation',
'description' => 'htaccess boost rules.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'boost_admin_htaccess_page',
),
'access arguments' => array(
'administer site configuration',
),
'weight' => 12,
'type' => MENU_LOCAL_TASK,
'file' => 'boost.admin.inc',
);
$items['boost_stats.php'] = array(
'page callback' => 'boost_stats_ajax_callback',
'type' => MENU_CALLBACK,
'access callback' => 1,
'access arguments' => array(
'access content',
),
'file path' => drupal_get_path('module', 'boost'),
'file' => 'stats/boost_stats.ajax.inc',
);
$items['boost-crawler'] = array(
'page callback' => 'boost_crawler_run',
'type' => MENU_CALLBACK,
'access callback' => 1,
'access arguments' => array(
'access content',
),
'file path' => drupal_get_path('module', 'boost'),
);
$items['boost_views.php'] = array(
'page callback' => 'boost_views_async',
'type' => MENU_CALLBACK,
'access arguments' => array(
'access content',
),
'file path' => drupal_get_path('module', 'boost'),
);
return $items;
}