You are here

function paging_filter in Paging 6

Same name and namespace in other branches
  1. 5 paging.module \paging_filter()

Implementation of hook_filter().

File

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

Code

function paging_filter($in_op, $in_delta = 0, $in_format = -1, $in_text = '') {
  switch ($in_op) {
    case 'list':
      return array(
        t('Paging'),
      );
      break;
    case 'description':
      return t('Allows content to be broken up into pages, using a separator tag (e.g. %separator), configurable on <a href="!url">paging settings page</a>.', array(
        '%separator' => '<!--pagebreak-->',
        '!url' => url('admin/settings/paging'),
      ));
      break;
    default:
      return $in_text;
      break;
  }
}