You are here

function simpletest_entrypoint in SimpleTest 5

Same name and namespace in other branches
  1. 6 simpletest.module \simpletest_entrypoint()

Menu callback for both running tests and listing possible tests

1 string reference to 'simpletest_entrypoint'
simpletest_menu in ./simpletest.module
Implementation of hook_menu().

File

./simpletest.module, line 109

Code

function simpletest_entrypoint() {
  if (!simpletest_load()) {

    /**
     * @todo find a better way for this return,
     * currently needed to show error, true leads to page not found
     */
    return ' ';
  }
  drupal_add_js(drupal_get_path('module', 'simpletest') . '/simpletest.js', 'module');
  $output = drupal_get_form('simpletest_overview_form');
  print theme('page', simpletest_running_output() . $output);
}