function mediafront_field in MediaFront 6
Same name and namespace in other branches
- 6.2 mediafront_field.inc \mediafront_field()
Implementation of hook_field()
2 string references to 'mediafront_field'
- mediafront_enable in ./
mediafront.install - Implementation of hook_enable().
- mediafront_init in ./
mediafront.module - Implementation of hook_init().
File
- ./
mediafront_field.inc, line 54 - Provides CCK integration for the mediafront module
Code
function mediafront_field($op, &$node, $field, &$items, $teaser, $page) {
if ($op == 'view') {
foreach ($items as $delta => $item) {
$items[$delta]['view'] = content_format($field, $item, 'default', $node);
}
return theme('field', $node, $field, $items, $teaser, $page);
}
}