You are here

function minifyjs_menu in Minify JS 7

Implements hook_menu()

File

./minifyjs.module, line 20

Code

function minifyjs_menu() {
  $items['admin/config/development/performance/default'] = array(
    'title' => 'Performance',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/config/development/performance/js'] = array(
    'access arguments' => array(
      'administer minifyjs',
    ),
    'file' => 'minifyjs.admin.inc',
    'page arguments' => array(
      'minifyjs_manage_javascript_files_form',
    ),
    'page callback' => 'drupal_get_form',
    'title' => 'Manage JavaScript Files',
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/config/development/performance/js/scan'] = array(
    'access arguments' => array(
      'administer minifyjs',
    ),
    'file' => 'minifyjs.admin.inc',
    'page callback' => 'minifyjs_scan_for_javascript_files',
    'title' => 'Scan for Javascript Files',
    'type' => MENU_LOCAL_ACTION,
  );
  $items['admin/config/development/performance/js/%/restore'] = array(
    'access arguments' => array(
      'administer minifyjs',
    ),
    'file' => 'minifyjs.admin.inc',
    'page arguments' => array(
      5,
    ),
    'page callback' => 'minifyjs_restore_original_file',
    'title' => 'Restore Original File',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/development/performance/js/%/minify'] = array(
    'access arguments' => array(
      'administer minifyjs',
    ),
    'file' => 'minifyjs.admin.inc',
    'page arguments' => array(
      5,
    ),
    'page callback' => 'minifyjs_create_minified_file',
    'title' => 'Minify File',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/development/minifyjs'] = array(
    'access arguments' => array(
      'administer minifyjs',
    ),
    'file' => 'minifyjs.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'minifyjs_settings_form',
    ),
    'title' => 'Minify javascript settings',
  );
  return $items;
}