You are here

function cck_blocks_entity_info_alter in CCK Blocks 7

Implements hook_entity_info_alter().

File

./cck_blocks.module, line 9

Code

function cck_blocks_entity_info_alter(&$entity_info) {

  // Add the 'CCK Blocks' view mode for nodes, users, and taxonomy terms
  $entity_info['node']['view modes'] += array(
    'cck_blocks' => array(
      'label' => t('CCK Blocks'),
      'custom settings' => TRUE,
    ),
  );
  $entity_info['taxonomy_term']['view modes'] += array(
    'cck_blocks' => array(
      'label' => t('CCK Blocks'),
      'custom settings' => TRUE,
    ),
  );
  $entity_info['user']['view modes'] += array(
    'cck_blocks' => array(
      'label' => t('CCK Blocks'),
      'custom settings' => TRUE,
    ),
  );
}