function paging_filter in Paging 5
Same name and namespace in other branches
- 6 paging.module \paging_filter()
Implementation of hook_filter().
File
- ./
paging.module, line 383
Code
function paging_filter($in_op, $in_delta = 0, $in_format = -1, $in_text = '') {
switch ($in_op) {
case 'list':
return array(
t("Paging"),
);
case 'description':
return t('Allows content to be broken up into pages, using the %separator tag, configurable <a href="!url">here</a>.', array(
'%separator' => PAGING_SEPARATOR,
'!url' => url('admin/settings/paging'),
));
// the filter gets called before the nodeapi 'view' so,
// add a comment to the body to inform the nodapi to apply the filter
case 'process':
return '<!--paging_filter-->' . $in_text;
default:
return $in_text;
}
}