You are here

function libraries_test_module_menu in Libraries API 7.3

Same name and namespace in other branches
  1. 7.2 tests/modules/libraries_test_module/libraries_test_module.module \libraries_test_module_menu()

Implements hook_menu().

File

tests/modules/libraries_test_module/libraries_test_module.module, line 507
Tests the library detection and loading.

Code

function libraries_test_module_menu() {
  $base = array(
    'page callback' => '_libraries_test_module_load',
    'access callback' => TRUE,
  );
  $items['libraries-test-module/files'] = $base + array(
    'title' => 'Test files',
    'page arguments' => array(
      'example_files',
    ),
  );
  $items['libraries-test-module/module-integration-files'] = $base + array(
    'title' => 'Test module integration files',
    'page arguments' => array(
      'example_module_integration_files',
    ),
  );
  $items['libraries-test-module/theme-integration-files'] = $base + array(
    'title' => 'Test theme integration files',
    'page arguments' => array(
      'example_theme_integration_files',
    ),
  );
  $items['libraries-test-module/versions'] = $base + array(
    'title' => 'Test version loading',
    'page arguments' => array(
      'example_versions',
    ),
  );
  $items['libraries-test-module/variant'] = $base + array(
    'title' => 'Test variant loading',
    'page arguments' => array(
      'example_variant',
      'example_variant',
    ),
  );
  $items['libraries-test-module/versions-and-variants'] = $base + array(
    'title' => 'Test concurrent version and variant loading',
    'page arguments' => array(
      'example_versions_and_variants',
      'example_variant_2',
    ),
  );
  $items['libraries-test-module/cache'] = $base + array(
    'title' => 'Test caching of library information',
    'page arguments' => array(
      'example_callback',
    ),
  );
  return $items;
}