You are here

function classified_node_info in Classified Ads 7.3

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

Implements hook_node_info().

@todo XXX 2011-08-04 FGM: note in D6 version to check "match nodeapi $node->type for spam module to add spam reporting links"

File

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

Code

function classified_node_info() {
  $ret = array(
    'classified' => array(
      // Cannot call node_get_types() since it ends up calling this code.
      'name' => t('Classified Ad'),
      'base' => 'classified',
      'description' => t('Contains a title, a body, and an administrator-defined expiration date'),
      'has_title' => TRUE,
      'title_label' => t('Ad Title'),
      'locked' => TRUE,
    ),
  );
  return $ret;
}