You are here

function ed_classified_node_info in Classified Ads 5

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

Implementation of hook_node_info().

File

./ed_classified.module, line 666
Simple text-based classified ads module. Michael Curry, Exodus Development, Inc. exodusdev@gmail.com for more information, please visit http://exodusdev.com/drupal/modules/classified.module Copyright (c) 2006, 2007 Exodus Development, Inc. All Rights…

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'),
    ),
  );
}