You are here

function _cleanpager_is_pager_element in Clean Pagination 6

Same name and namespace in other branches
  1. 7 cleanpager.module \_cleanpager_is_pager_element()

Determine if the given string a 'page' value.

2 calls to _cleanpager_is_pager_element()
cleanpager_path in ./cleanpager.module
Remove number at end of path
_cleanpager_rewrite_path in ./cleanpager.module
Remove number at end of path

File

./cleanpager.module, line 226

Code

function _cleanpager_is_pager_element($value) {
  if (is_numeric($value)) {
    return TRUE;
  }

  // Handle multiple pagers (i.e. 0,0,1,0);
  $parts = explode(',', $value);
  foreach ($parts as $p) {
    if (!is_numeric($p)) {
      return FALSE;
    }
  }
  return TRUE;
}