Full ELMS Learning Network documentation
poll.views.inc
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).- cis7 sites/all/modules/ulmus/views/modules/poll.views.inc
- cle7 sites/all/modules/ulmus/views/modules/poll.views.inc
- ecd7 sites/all/modules/ulmus/views/modules/poll.views.inc
- elmsmedia7 sites/all/modules/ulmus/views/modules/poll.views.inc
- harmony7 sites/all/modules/ulmus/views/modules/poll.views.inc
- icor7 sites/all/modules/ulmus/views/modules/poll.views.inc
- meedjum_blog7 sites/all/modules/ulmus/views/modules/poll.views.inc
- mooc7 sites/all/modules/ulmus/views/modules/poll.views.inc
Provide views data and handlers for poll.module.
Functions
Name![]() |
Description |
---|---|
poll_views_data | Implements hook_views_data(). |
File
sites/all/modules/ulmus/views/modules/poll.views.incView source
- <?php
-
- /**
- * @file
- * Provide views data and handlers for poll.module.
- *
- * @ingroup views_module_handlers
- */
-
- /**
- * Implements hook_views_data().
- */
- function poll_views_data() {
- // Basic table information.
- $data['poll']['table']['group'] = t('Poll');
-
- // Join to 'node' as a base table.
- $data['poll']['table']['join'] = array(
- 'node' => array(
- 'left_field' => 'nid',
- 'field' => 'nid',
- ),
- );
-
- // ----------------------------------------------------------------
- // Fields
-
- // poll active status
- $data['poll']['active'] = array(
- 'title' => t('Active'),
- 'help' => t('Whether the poll is open for voting.'),
- 'field' => array(
- 'handler' => 'views_handler_field_boolean',
- 'click sortable' => TRUE,
- ),
- 'filter' => array(
- 'handler' => 'views_handler_filter_boolean_operator',
- 'label' => t('Active'),
- 'type' => 'yes-no',
- ),
- 'sort' => array(
- 'handler' => 'views_handler_sort',
- ),
- );
-
- return $data;
- }
-