• Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • File List
  • File Members

modules/views.views.inc

Go to the documentation of this file.
00001 <?php
00016 function views_views_data() {
00017   $data['views']['table']['group'] = t('Global');
00018   $data['views']['table']['join'] = array(
00019     // #global is a special flag which let's a table appear all the time.
00020     '#global' => array(),
00021   );
00022 
00023   $data['views']['random'] = array(
00024     'title' => t('Random'),
00025     'help' => t('Randomize the display order.'),
00026     'sort' => array(
00027       'handler' => 'views_handler_sort_random',
00028     ),
00029   );
00030 
00031   $data['views']['null'] = array(
00032     'title' => t('Null'),
00033     'help' => t('Allow a contextual filter value to be ignored. The query will not be altered by this contextual filter value. Can be used when contextual filter values come from the URL, and a part of the URL needs to be ignored.'),
00034     'argument' => array(
00035       'handler' => 'views_handler_argument_null',
00036     ),
00037   );
00038 
00039   $data['views']['nothing'] = array(
00040     'title' => t('Custom text'),
00041     'help' => t('Provide custom text or link.'),
00042     'field' => array(
00043       'handler' => 'views_handler_field_custom',
00044     ),
00045   );
00046 
00047   $data['views']['counter'] = array(
00048     'title' => t('View result counter'),
00049     'help' => t('Displays the actual position of the view result'),
00050     'field' => array(
00051       'handler' => 'views_handler_field_counter',
00052     ),
00053   );
00054 
00055   $data['views']['area'] = array(
00056     'title' => t('Text area'),
00057     'help' => t('Provide markup text for the area.'),
00058     'area' => array(
00059       'handler' => 'views_handler_area_text',
00060     ),
00061   );
00062 
00063   $data['views']['view'] = array(
00064     'title' => t('View area'),
00065     'help' => t('Insert a view inside an area.'),
00066     'area' => array(
00067       'handler' => 'views_handler_area_view',
00068     ),
00069   );
00070 
00071   $data['views']['result'] = array(
00072     'title' => t('Result summary'),
00073     'help' => t('Shows result summary, for example the items per page.'),
00074     'area' => array(
00075       'handler' => 'views_handler_area_result',
00076     ),
00077   );
00078 
00079   if (module_exists('contextual')) {
00080     $data['views']['contextual_links'] = array(
00081       'title' => t('Contextual Links'),
00082       'help' => t('Display fields in a contextual links menu.'),
00083       'field' => array(
00084         'handler' => 'views_handler_field_contextual_links',
00085       ),
00086     );
00087   }
00088 
00089   if (module_invoke('ctools', 'api_version', '1.7.1')) {
00090     $data['views']['expression'] = array(
00091       'title' => t('Math expression'),
00092       'help' => t('Evaluates a mathematical expression and displays it.'),
00093       'field' => array(
00094         'handler' => 'views_handler_field_math',
00095         'float' => TRUE,
00096       ),
00097     );
00098   }
00099 
00100   return $data;
00101 }
00102 

Generated on Sun Feb 26 2012 12:52:51 for Views by  doxygen 1.7.1