function common_test_html_head_link

Page callback.

1 string reference to 'common_test_html_head_link'
common_test_menu in modules/simpletest/tests/common_test.module
Implements hook_menu().

File

modules/simpletest/tests/common_test.module, line 299

Code

function common_test_html_head_link() {
    drupal_add_html_head_link(array(
        'href' => '/foo?bar=baz',
        'rel' => 'alternate',
    ), TRUE);
    drupal_add_html_head_link(array(
        'href' => '/not-added-to-http-headers',
        'rel' => 'alternate',
    ), FALSE);
    drupal_add_html_head_link(array(
        'href' => '/foo/bar',
        'hreflang' => 'nl',
        'rel' => 'alternate',
    ), TRUE);
    drupal_add_html_head_link(array(
        'href' => '/foo/bar',
        'hreflang' => 'de',
        'rel' => 'alternate',
    ), TRUE);
    drupal_add_html_head_link(array(
        'href' => '/foo?bar=baz&baz=false',
        'hreflang' => 'en',
        'rel' => 'alternate',
    ), TRUE);
    return '';
}

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