function classified_test_page_invalid_term_path in Classified Ads 7.3
Build a taxonomy term path to a tid one higher than the highest existing tid.
This will be an incorrect URL, which must not be modified. Issue #1412840
See also
classified_url_outbound_alter()
1 string reference to 'classified_test_page_invalid_term_path'
- classified_test_menu in tests/
classified_test.module - Implements hook_menu().
File
- tests/
classified_test.module, line 31 - Helper module for the Classified ads tests.
Code
function classified_test_page_invalid_term_path() {
$q = db_select('taxonomy_term_data');
$q
->addExpression('MAX(tid)');
$tid = $q
->execute()
->fetchField();
$tid++;
$ret = url("taxonomy/term/{$tid}");
return $ret;
}