function ajax_test_link

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

Code

function ajax_test_link() {
    $build['link'] = array(
        '#type' => 'link',
        '#title' => 'Show help',
        '#href' => 'filter/tips',
        '#ajax' => array(
            'wrapper' => 'block-system-main',
        ),
    );
    return $build;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.