You are here

function _paging_populate_empty_names in Paging 6

Same name and namespace in other branches
  1. 7 paging.module \_paging_populate_empty_names()

Helper function to populate empty page names.

2 calls to _paging_populate_empty_names()
paging_render_names in ./paging.module
Returns a rendered list of page links.
_paging_nodeapi in ./paging.module
Helper function for paging_nodeapi().

File

./paging.module, line 400
Allows users to use a tag to break up a node into multiple pages.

Code

function _paging_populate_empty_names($names, $title) {
  foreach ($names as $key => $name) {
    trim($names[$key]);
    if (empty($names[$key])) {
      $names[$key] = t('!title - Page !number', array(
        '!title' => check_plain($title),
        '!number' => $key + 1,
      ));
    }
  }
  return $names;
}