function advagg_js_compress_menu in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7.2 advagg_js_compress/advagg_js_compress.module \advagg_js_compress_menu()
- 7 advagg_js_compress/advagg_js_compress.module \advagg_js_compress_menu()
Implementation of hook_menu
File
- advagg_js_compress/
advagg_js_compress.module, line 57 - Advanced CSS/JS aggregation js compression module.
Code
function advagg_js_compress_menu() {
$items = array();
$file_path = drupal_get_path('module', 'advagg_js_compress');
$items['advagg/js_compress_test_file'] = array(
'page callback' => 'advagg_js_compress_test_file',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['admin/settings/advagg/js-compress'] = array(
'title' => 'JS Compression',
'description' => 'Adjust JS Compression settings.',
'page callback' => 'advagg_js_compress_admin_page',
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer site configuration',
),
'file path' => $file_path,
'file' => 'advagg_js_compress.admin.inc',
'weight' => 10,
);
return $items;
}