You are here

function classified_entity_info_alter in Classified Ads 7.3

Same name and namespace in other branches
  1. 6.3 classified.module \classified_entity_info_alter()

Implements hook_entity_info_alter().

  • add the Classified Ad view mode (classified_content_build_modes() on D6)

File

./classified.module, line 908
A pure D7 classified ads module inspired by the ed_classified module.

Code

function classified_entity_info_alter(&$entity_info) {
  $entity_info['node']['view modes']['classified'] = array(
    // Was 'ad list' / t('Ad list') in Views 6.x.
    'label' => t('Classified Ad'),
    'custom settings' => TRUE,
  );
}