custom_pagers.views.inc in Custom Pagers 6
Same filename and directory in other branches
Interface between content.module and views.module.
File
views/custom_pagers.views.incView source
<?php
/**
* @file
* Interface between content.module and views.module.
*/
/**
* Implementation of hook_views_plugins.
*
* Defines some plugins used by the Views modes for
* nodereference and userreference.
*/
function custom_pagers_views_plugins() {
$plugins = array(
'module' => 'custom_pagers',
// This just tells our themes are elsewhere.
'display' => array(
'custom_pagers_simple' => array(
'path' => drupal_get_path('module', 'custom_pagers') . '/views',
// Those strings are not translated for now.
// We'll need to change that if / when we remove 'no ui'
'title' => 'Simple',
// TODO: better name ? (currently not displayed anyway)
'help' => 'Destination-agnostic display, designed for returning only a base table primary key.',
'handler' => 'custom_pagers_plugin_display_simple',
'no ui' => TRUE,
// Programmatic use only.
'uses hook menu' => FALSE,
'use ajax' => FALSE,
'use pager' => FALSE,
'accept attachments' => FALSE,
),
),
'style' => array(
'custom_pagers_php_array' => array(
'path' => drupal_get_path('module', 'custom_pagers') . '/views',
// Those strings are not translated for now.
// We'll need to change that if / when we remove 'no ui'
'title' => 'Results array (with title)',
'help' => 'Returns the view as a PHP array of names + rendered rows.',
'handler' => 'custom_pagers_plugin_style_php_array',
'no ui' => TRUE,
// Programmatic use only.
'uses row plugin' => FALSE,
'uses fields' => FALSE,
'type' => 'custom_pagers_simple',
'even empty' => TRUE,
),
),
);
return $plugins;
}
Functions
Name | Description |
---|---|
custom_pagers_views_plugins | Implementation of hook_views_plugins. |