function common_test_l_active_class

Page callback: Displays links to the current page, one with a query string.

1 string reference to 'common_test_l_active_class'
common_test_menu in drupal/core/modules/system/tests/modules/common_test/common_test.module
Implements hook_menu().

File

drupal/core/modules/system/tests/modules/common_test/common_test.module, line 324
Helper module for the Common tests.

Code

function common_test_l_active_class() {
  return array(
    'no_query' => array(
      '#type' => 'link',
      '#title' => t('Link with no query string'),
      '#href' => current_path(),
    ),
    'with_query' => array(
      '#type' => 'link',
      '#title' => t('Link with a query string'),
      '#href' => current_path(),
      '#options' => array(
        'query' => array(
          'foo' => 'bar',
        ),
      ),
    ),
  );
}