authcache_widget_test.module in Authenticated User Page Caching (Authcache) 7.2
Provides a stub module for testing the authcache form elements.
File
tests/authcache_widget_test.moduleView source
<?php
/**
* @file
* Provides a stub module for testing the authcache form elements.
*/
/**
* Implements hook_menu().
*/
function authcache_widget_test_menu() {
$item['authcache-widget-test-form'] = array(
'title' => 'Test form',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'authcache_widget_test_form',
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $item;
}
/**
* Form builder.
*/
function authcache_widget_test_form($form, &$form_state) {
return HookStub::record(__FUNCTION__, func_get_args());
}
Functions
Name | Description |
---|---|
authcache_widget_test_form | Form builder. |
authcache_widget_test_menu | Implements hook_menu(). |