You are here

function cleanpager_match_path in Clean Pagination 7

Wrapper for drupal_match_path() to correctly handle the front page.

2 calls to cleanpager_match_path()
cleanpager_check_match in ./cleanpager.module
Checks if the page should use clean pagination
cleanpager_init in ./cleanpager.module
Implements hook_init().

File

./cleanpager.module, line 158

Code

function cleanpager_match_path($q) {

  // Change the matches to have a new line in them (blank line) so that
  // the front page where there is no query string is correctly matched.
  $matches = str_replace('<front>', "<front>\n", variable_get('cleanpager_pages', ''));
  return drupal_match_path($q, $matches);
}