You are here

function classified_node_info in Classified Ads 6.3

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

Implements hook_node_info().

4 calls to classified_node_info()
ClassifiedBasicTest::test1269828 in tests/classified_basic.test
Bug 1269828
ClassifiedBasicTest::test1397422 in tests/classified_basic.test
Bug 1397422
ClassifiedBasicTest::test1491880 in tests/classified_basic.test
Test token generation for issue #1491880.
ClassifiedBasicTest::test1525392 in tests/classified_basic.test

File

./classified.module, line 1194
A pure D6 classified ads module inspired by the ed_classified module.

Code

function classified_node_info() {

  // beware: these must match nodeapi value; name must be same as $node->type for spam module to add spam reporting links
  $ret = array(
    'classified' => array(
      // Cannot call node_get_types() since it ends up calling this code.
      'name' => t('Classified Ad'),
      'module' => 'classified',
      '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'),
      'locked' => TRUE,
    ),
  );
  return $ret;
}