function ajax_test_render
Menu callback; Return an element suitable for use by ajax_deliver().
Additionally ensures that ajax_render() incorporates JavaScript settings generated during the page request by invoking drupal_add_js() with a dummy setting.
1 string reference to 'ajax_test_render'
- ajax_test_menu in modules/
simpletest/ tests/ ajax_test.module - Implements hook_menu().
File
-
modules/
simpletest/ tests/ ajax_test.module, line 49
Code
function ajax_test_render() {
drupal_add_js(array(
'ajax' => 'test',
), 'setting');
return array(
'#type' => 'ajax',
'#commands' => array(),
);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.