field_ui_field_ui_view_modes_tabs

Versions
mediamosa-21
field_ui_field_ui_view_modes_tabs()

Implements hook_field_ui_view_modes_tabs() on behalf of other core modules.

A module can add its render modes to a tab defined by another module. Expected format:

<?php

array(
'tab1' => array(
'title' => t('The human-readable title of the tab'),
'view modes' => array('mymodule_mode1', 'mymodule_mode2'),
),
'tab2' => array(
// ...
    ),
);

?>

Return value

An array describing the view modes defined by the module, grouped by tabs.

Code

modules/field_ui/field_ui.module, line 225

<?php
function field_ui_field_ui_view_modes_tabs() {
  $modes = array(
    'basic' => array(
      'title' => t('Basic'),
      'view modes' => array('teaser', 'full'),
    ),
    'rss' => array(
      'title' => t('RSS'),
      'view modes' => array('rss'),
    ),
    'print' => array(
      'title' => t('Print'),
      'view modes' => array('print'),
    ),
    'search' => array(
      'title' => t('Search'),
      'view modes' => array('search_index', 'search_result'),
    ),
  );
  return $modes;
}
?>