source: sipes/modules_contrib/views/modules/views.views.inc @ 59029b2

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

se actualizo la version del modulo views

  • Propiedad mode establecida a 100644
File size: 1.7 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  $data['views']['area'] = array(
55    'title' => t('Text area'),
56    'help' => t('Provide markup text for the area.'),
57    'area' => array(
58      'handler' => 'views_handler_area_text',
59    ),
60  );
61
62  if (module_invoke('ctools', 'api_version', '1.7.1')) {
63    $data['views']['expression'] = array(
64      'title' => t('Math expression'),
65      'help' => t('Evaluates a mathematical expression and displays it.'),
66      'field' => array(
67        'handler' => 'views_handler_field_math',
68      ),
69    );
70  }
71
72  return $data;
73}
74
75/**
76 * @}
77 */
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.