| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @file 4 * Provide views data for filefield.module. 5 */ 6 7 /** 8 * @defgroup views_filefield_module filefield.module handlers 9 * 10 * Includes the handler for the FileField data column. 11 * @{ 12 */ 13 14 15 /** 16 * Implementation of hook_views_data() 17 */ 18 function filefield_views_data() { 19 $data = array(); 20 21 // Extend the files table with an icon field. 22 $data['files']['icon'] = array( 23 'title' => t('Icon'), 24 'help' => t('An icon corresponding to the file MIME type.'), 25 'real field' => 'filemime', 26 'field' => array( 27 'handler' => 'filefield_handler_field_icon', 28 'click sortable' => FALSE, 29 ), 30 ); 31 32 return $data; 33 } 34 35 /** 36 * Implementation of hook_views_handlers(). 37 */ 38 function filefield_views_handlers() { 39 return array( 40 'info' => array( 41 'path' => drupal_get_path('module', 'filefield') . '/views', 42 ), 43 'handlers' => array( 44 // field handlers 45 'filefield_handler_field_data' => array( 46 'parent' => 'views_handler_field_node', 47 ), 48 'filefield_handler_field_icon' => array( 49 'parent' => 'views_handler_field', 50 ), 51 ), 52 ); 53 } 54 55 /** 56 * @} 57 */
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |