function clientside_validation_testswarm_menu in Clientside Validation 7
Same name and namespace in other branches
- 7.2 clientside_validation_testswarm/clientside_validation_testswarm.module \clientside_validation_testswarm_menu()
Implements hook_menu().
File
- clientside_validation_testswarm/
clientside_validation_testswarm.module, line 10 - Testswarm tests for Clientside Validation.
Code
function clientside_validation_testswarm_menu() {
$path = 'clientsidevalidation/tests';
$items[$path] = array(
'title' => 'Clientside Validation Testswarm Tests',
'description' => 'All forms for Clientside Validation Testswarm needed to run the tests',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access content',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items[$path . '/fapi'] = array(
'title' => 'Clientside Validation Fapi Test',
'description' => 'Test Clientside Validation on normal FAPI elements',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'clientside_validation_testswarm_fapi',
),
'access arguments' => array(
'access content',
),
'file' => 'clientside_validation_testswarm.forms.inc',
);
$items[$path . '/html5'] = array(
'title' => 'Clientside Validation HTML5 Test',
'description' => 'Test Clientside Validation on HTML5 FAPI elements provided by the Elements module',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'clientside_validation_testswarm_html5',
),
'access arguments' => array(
'access content',
),
'file' => 'clientside_validation_testswarm.forms.inc',
);
$items[$path . '/fapivalidation'] = array(
'title' => 'Clientside Validation FAPI Validation Test',
'description' => 'Test Clientside Validation on FAPI elements with FAPI Validation rules',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'clientside_validation_testswarm_fapi_validation',
),
'access arguments' => array(
'access content',
),
'file' => 'clientside_validation_testswarm.forms.inc',
);
return $items;
}