You are here

function _cleanpager_get_q in Clean Pagination 7

Helper function to get the query string. Handles views ajax.

3 calls to _cleanpager_get_q()
cleanpager_path in ./cleanpager.module
Remove number at end of path
cleanpager_theme_pager_link in ./cleanpager.module
Override theme for a pager link
_cleanpager_rewrite_path in ./cleanpager.module
Remove number at end of path

File

./cleanpager.module, line 222

Code

function _cleanpager_get_q() {
  $q = isset($_GET['q']) ? $_GET['q'] : '';
  if (arg(0) == 'views' && arg(1) == 'ajax' && !empty($_POST['view_path'])) {
    $q = rtrim($_POST['view_path'], '/');
  }
  return $q;
}