You are here

function simpletest_menu in SimpleTest 5

Same name and namespace in other branches
  1. 6.2 simpletest.module \simpletest_menu()
  2. 6 simpletest.module \simpletest_menu()
  3. 7.2 simpletest.module \simpletest_menu()
  4. 7 simpletest.module \simpletest_menu()

Implementation of hook_menu().

File

./simpletest.module, line 27

Code

function simpletest_menu($may_cache) {
  if ($may_cache) {
    $items = array();
    $items[] = array(
      'path' => 'admin/build/simpletest',
      'title' => 'Simpletest',
      'callback' => 'simpletest_entrypoint',
      'description' => t('Run tests against Drupal core and your active modules. These tests help assure that your site code is working as designed.'),
      'access' => user_access('administer unit tests'),
    );
    $items[] = array(
      'path' => 'admin/settings/simpletest',
      'title' => 'Simpletest settings',
      'description' => t('Configure unit testing framework.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'simpletest_settings',
      'access' => user_access('administer unit tests'),
    );
    return $items;
  }
}