source: sipes/modules_contrib/views/modules/views.views.inc @ b907fa2

stableversion-3.0
Last change on this file since b907fa2 was 177a560, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio de modulos contribuidos de drupal

  • Propiedad mode establecida a 100644
File size: 1.6 KB
Línea 
1<?php
2/**
3 * @file
4 * Provide views data and handlers that aren't tied to any other module.
5 */
6
7/**
8 * @defgroup views_views_module miscellaneous handlers
9 *
10 * @{
11 */
12
13/**
14 * Implementation of hook_views_data()
15 */
16function views_views_data() {
17  $data['views']['table']['group'] = t('Global');
18  $data['views']['table']['join'] = array(
19    '#global' => array(),
20  );
21
22  $data['views']['random'] = array(
23    'title' => t('Random'),
24    'help' => t('Randomize the display order.'),
25    'sort' => array(
26      'handler' => 'views_handler_sort_random',
27    ),
28  );
29
30  $data['views']['null'] = array(
31    'title' => t('Null'),
32    'help' => t('Allow an argument to be ignored. The query will not be altered by this argument.'),
33    'argument' => array(
34      'handler' => 'views_handler_argument_null',
35    ),
36  );
37
38  $data['views']['nothing'] = array(
39    'title' => t('Custom text'),
40    'help' => t('Provide custom text or link.'),
41    'field' => array(
42      'handler' => 'views_handler_field_custom',
43    ),
44  );
45
46  $data['views']['counter'] = array(
47    'title' => t('View result counter'),
48    'help' => t('Displays the actual position of the view result'),
49    'field' => array(
50      'handler' => 'views_handler_field_counter',
51    ),
52  );
53
54  if (module_invoke('ctools', 'api_version', '1.7.1')) {
55    $data['views']['expression'] = array(
56      'title' => t('Math expression'),
57      'help' => t('Evaluates a mathematical expression and displays it.'),
58      'field' => array(
59        'handler' => 'views_handler_field_math',
60      ),
61    );
62  }
63
64  return $data;
65}
66
67/**
68 * @}
69 */
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.