function ajax_test_link in Drupal 7
Menu callback; Renders a #type link with #ajax.
1 string reference to 'ajax_test_link'
- ajax_test_menu in modules/
simpletest/ tests/ ajax_test.module - Implements hook_menu().
File
- modules/
simpletest/ tests/ ajax_test.module, line 68 - Helper module for Ajax framework tests.
Code
function ajax_test_link() {
$build['link'] = array(
'#type' => 'link',
'#title' => 'Show help',
'#href' => 'filter/tips',
'#ajax' => array(
'wrapper' => 'block-system-main',
),
);
return $build;
}