You are here

function classified_view in Classified Ads 6.3

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

Implements hook_view().

When building breadcrumbs, assume a tree-structured vocabulary. Non-tree DAGs with multiple parents per term are not supported.

Only build a breadcrumbs trail if terms are defined (they should be).

File

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

Code

function classified_view($node, $teaser = FALSE, $page = FALSE) {
  if ($page) {
    drupal_set_breadcrumb(_classified_get_breadcrumb_by_node($node));
  }
  $node->content['body'] = array(
    '#value' => check_markup($node->body, $node->format, FALSE),
  );
  $node->content['expires'] = array(
    '#value' => theme('classified_expires', $node),
  );
  return $node;
}