You are here

function smart_paging_preprocess_page in Smart Paging 7.2

Same name and namespace in other branches
  1. 7 smart_paging.module \smart_paging_preprocess_page()

Implements MODULE_preprocess_page()

Set the page title for the default theme only Variable $smart_paging_page_title_suffix will be available at page.tpl.php

File

./smart_paging.module, line 1572
Provides smart paging capability to Drupal contents.

Code

function smart_paging_preprocess_page(&$variables) {
  global $theme;
  if (variable_get('theme_default', '') == $theme) {
    $variables['title'] = drupal_get_title();
    $variables['smart_paging_page_title_suffix'] = theme('smart_paging_page_title_suffix');
  }
}