function purl_test_page in Persistent URL 7
Same name and namespace in other branches
- 6 tests/purl_test.module \purl_test_page()
Test page callback.
1 string reference to 'purl_test_page'
- purl_test_menu in tests/
purl_test.module - Implements hook_menu().
File
- tests/
purl_test.module, line 21
Code
function purl_test_page() {
$tests = array();
$tests[] = t('Rewrite: !link', array(
'!link' => purl_test_remove_base_path(url('node')),
));
$tests[] = t('Disable providers: !link', array(
'!link' => purl_test_remove_base_path(url('node', array(
'purl' => array(
'disabled' => TRUE,
),
))),
));
$tests[] = t('Remove provider: !link', array(
'!link' => purl_test_remove_base_path(url('node', array(
'purl' => array(
'remove' => array(
'purl_test',
),
),
))),
));
$tests[] = t('Add provider: !link', array(
'!link' => purl_test_remove_base_path(url('node', array(
'purl' => array(
'add' => array(
array(
'provider' => 'purl_alt',
'id' => 'sweden',
),
),
),
))),
));
return implode('<br/>', $tests);
}