You are here

function ed_classified_node_info in Classified Ads 6.2

Same name and namespace in other branches
  1. 5.2 ed_classified.module \ed_classified_node_info()
  2. 5 ed_classified.module \ed_classified_node_info()
  3. 7.2 ed_classified.module \ed_classified_node_info()

Implements hook_node_info().

File

./ed_classified.module, line 886
Simple text-based classified ads module.

Code

function ed_classified_node_info() {

  // beware: these must match nodeapi value; name must be same as $node->type for spam module to add spam reporting links
  return array(
    EDI_CLASSIFIED_MODULE_NAME => array(
      'name' => t('Classified Ad'),
      // cannot call node_get_types() since it ends up calling this code.
      'module' => EDI_CLASSIFIED_MODULE_NAME,
      'description' => t('Contains a title, a body, and an administrator-defined expiration date'),
      'has_title' => TRUE,
      'title_label' => t('Ad Title'),
      'has_body' => TRUE,
      'body_label' => t('Ad Text'),
    ),
  );
}