function content_views_plugins in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 6.3 includes/views/content.views.inc \content_views_plugins()
Implementation of hook_views_plugins.
Defines some plugins used by the Views modes for nodereference and userreference.
File
- includes/
views/ content.views.inc, line 82 - Interface between content.module and views.module.
Code
function content_views_plugins() {
$plugins = array(
'module' => 'content',
// This just tells our themes are elsewhere.
'display' => array(
'content_simple' => array(
'path' => drupal_get_path('module', 'content') . '/includes/views/handlers',
// 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. Mostly useful for programmatic views.',
'handler' => 'content_plugin_display_simple',
'no ui' => TRUE,
// Programmatic use only.
'uses hook menu' => FALSE,
'use ajax' => FALSE,
'use pager' => FALSE,
'accept attachments' => FALSE,
),
'content_references' => array(
'path' => drupal_get_path('module', 'content') . '/includes/views/handlers',
// Those strings are not translated for now.
// We'll need to change that if / when we remove 'no ui'
'title' => 'Simple - for reference fields',
// TODO: better name ? (currently not displayed anyway)
'help' => 'Destination-agnostic display. Mostly useful for programmatic views.',
'parent' => 'content_simple',
'handler' => 'content_plugin_display_references',
'no ui' => TRUE,
// Programmatic use only.
'uses hook menu' => FALSE,
'use ajax' => FALSE,
'use pager' => FALSE,
'accept attachments' => FALSE,
),
),
'style' => array(
'content_php_array_autocomplete' => array(
'path' => drupal_get_path('module', 'content') . '/includes/views/handlers',
// 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' => 'content_plugin_style_php_array_ac',
'no ui' => TRUE,
// Programmatic use only.
'uses row plugin' => TRUE,
'uses fields' => TRUE,
'type' => 'content_simple',
'even empty' => TRUE,
),
),
);
return $plugins;
}