You are here

function nodeorder_entity_info_alter in Node Order 7

Implements hook_entity_info_alter().

File

./nodeorder.module, line 266
Nodeorder module.

Code

function nodeorder_entity_info_alter(&$info) {
  $entity_type = 'node';
  $view_modes = array(
    'nodeorder' => array(
      'label' => t('Node Order'),
      'custom settings' => TRUE,
    ),
  );
  if (!isset($info[$entity_type]['view modes'])) {
    $info[$entity_type]['view modes'] = array();
  }
  $info[$entity_type]['view modes'] = $info[$entity_type]['view modes'] + $view_modes;
}