function static_field_field_widget_form in Static field 7
Implements hook_field_widget_form().
File
- ./
static_field.module, line 71 - Static field main module file.
Code
function static_field_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
if ($instance['settings']['form_display']) {
$element += array(
'#type' => $instance['settings']['form_display'],
'#markup' => check_markup($instance['settings']['text']['value'], $instance['settings']['text']['format']),
);
return $element;
}
}