You are here

function cleanpager_init in Clean Pagination 5

Same name and namespace in other branches
  1. 6 cleanpager.module \cleanpager_init()
  2. 7 cleanpager.module \cleanpager_init()

File

./cleanpager.module, line 62

Code

function cleanpager_init() {
  if (cleanpager_check_match()) {
    $url_array = explode('/', $_GET['q']);
    $page = end($url_array);
    array_pop($url_array);

    //die($page . 't');
    if (is_numeric($page)) {

      //die($page);
      $_GET['page'] = $page;
    }
  }
}