You are here

function content_field_wrapper_post_render in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 content.module \content_field_wrapper_post_render()

Hide specified fields from the $content variable in node templates.

1 string reference to 'content_field_wrapper_post_render'
content_field in ./content.module
Implementation of hook_field(). Handles common field housekeeping.

File

./content.module, line 2273
Allows administrators to associate custom fields to content types.

Code

function content_field_wrapper_post_render($content, $element) {
  $field = content_fields($element['#field_name'], $element['#type_name']);
  if (theme('content_exclude', $content, $field, $element['#context'])) {
    return '';
  }
  return $content;
}