function advagg_menu in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7.2 advagg.module \advagg_menu()
- 7 advagg.module \advagg_menu()
Implementation of hook_menu().
File
- ./
advagg.module, line 206 - Advanced CSS/JS aggregation module
Code
function advagg_menu() {
list($css_path, $js_path) = advagg_get_root_files_dir();
$file_path = drupal_get_path('module', 'advagg');
$items = array();
$items[$css_path . '/%'] = array(
'page callback' => 'advagg_missing_css',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
'file path' => $file_path,
'file' => 'advagg.missing.inc',
);
$items[$js_path . '/%'] = array(
'page callback' => 'advagg_missing_js',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
'file path' => $file_path,
'file' => 'advagg.missing.inc',
);
$items['admin/settings/advagg'] = array(
'title' => 'Advanced CSS/JS Aggregation',
'description' => 'Configuration for Advanced CSS/JS Aggregation.',
'page callback' => 'advagg_admin_page',
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'administer site configuration',
),
'file path' => $file_path,
'file' => 'advagg.admin.inc',
);
$items['admin/settings/advagg/config'] = array(
'title' => 'Configuration',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/settings/advagg/info'] = array(
'title' => 'Information',
'description' => 'More detailed information about advagg.',
'page callback' => 'advagg_admin_info_page',
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer site configuration',
),
'file path' => $file_path,
'file' => 'advagg.admin.inc',
);
$items['admin_menu/flush-cache/advagg'] = array(
'page callback' => 'advagg_admin_flush_cache',
'type' => MENU_CALLBACK,
'access arguments' => array(
'administer site configuration',
),
'file path' => $file_path,
'file' => 'advagg.admin.inc',
);
return $items;
}