function weight_field_formatter_view in Weight 7.3
Implements hook_field_formatter_view().
File
- ./
weight.module, line 100 - Provides a weight field that allows entities to be ordered.
Code
function weight_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
$element = array();
foreach ($items as $delta => $item) {
$element[$delta] = array(
'#markup' => $item['value'],
);
}
return $element;
}