function views_object_types

×

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 view.inc views_object_types()
cle7 view.inc views_object_types()
elmsmedia7 view.inc views_object_types()
icor7 view.inc views_object_types()
meedjum_blog7 view.inc views_object_types()
mooc7 view.inc views_object_types()

Provide a list of views object types used in a view, with some information about them.

Related topics

34 calls to views_object_types()
view::destroy in sites/all/modules/ulmus/views/includes/view.inc
Unset references so that a $view object may be properly garbage collected.
view::fix_missing_relationships in sites/all/modules/ulmus/views/includes/view.inc
Attempt to discover if the view has handlers missing relationships.
view::init_handlers in sites/all/modules/ulmus/views/includes/view.inc
Acquire and attach all of the handlers.
view::_post_execute in sites/all/modules/ulmus/views/includes/view.inc
Run the post_execute() on all active handlers.
view::_pre_query in sites/all/modules/ulmus/views/includes/view.inc
Run the pre_query() on all active handlers.

... See full list

File

sites/all/modules/ulmus/views/includes/view.inc, line 2584
Provides the view object type and associated methods.

Code

function views_object_types() {
  static $retval = NULL;

  // statically cache this so t() doesn't run a bajillion times.
  if (!isset($retval)) {
    $retval = array(
      'field' => array(
        'title' => t('Fields'), // title
        'ltitle' => t('fields'), // lowercase title for mid-sentence
        'stitle' => t('Field'), // singular title
        'lstitle' => t('field'), // singular lowercase title for mid sentence
        'plural' => 'fields',
      ),
      'argument' => array(
        'title' => t('Contextual filters'),
        'ltitle' => t('contextual filters'),
        'stitle' => t('Contextual filter'),
        'lstitle' => t('contextual filter'),
        'plural' => 'arguments',
      ),
      'sort' => array(
        'title' => t('Sort criteria'),
        'ltitle' => t('sort criteria'),
        'stitle' => t('Sort criterion'),
        'lstitle' => t('sort criterion'),
        'plural' => 'sorts',
      ),
      'filter' => array(
        'title' => t('Filter criteria'),
        'ltitle' => t('filter criteria'),
        'stitle' => t('Filter criterion'),
        'lstitle' => t('filter criterion'),
        'plural' => 'filters',
      ),
      'relationship' => array(
        'title' => t('Relationships'),
        'ltitle' => t('relationships'),
        'stitle' => t('Relationship'),
        'lstitle' => t('Relationship'),
        'plural' => 'relationships',
      ),
      'header' => array(
        'title' => t('Header'),
        'ltitle' => t('header'),
        'stitle' => t('Header'),
        'lstitle' => t('Header'),
        'plural' => 'header',
        'type' => 'area',
      ),
      'footer' => array(
        'title' => t('Footer'),
        'ltitle' => t('footer'),
        'stitle' => t('Footer'),
        'lstitle' => t('Footer'),
        'plural' => 'footer',
        'type' => 'area',
      ),
      'empty' => array(
        'title' => t('No results behavior'),
        'ltitle' => t('no results behavior'),
        'stitle' => t('No results behavior'),
        'lstitle' => t('No results behavior'),
        'plural' => 'empty',
        'type' => 'area',
      ),
    );
  }

  return $retval;
}