function static_field_field_info in Static field 7
Implements hook_field_info().
File
- ./
static_field.module, line 11 - Static field main module file.
Code
function static_field_field_info() {
return array(
'static_field' => array(
'label' => t('Static'),
'description' => t('Allows the display of static text as field as a field instance.'),
'instance_settings' => array(
'text' => array(
'value' => '',
'format' => NULL,
),
'form_display' => FALSE,
),
'default_widget' => 'static_field',
'default_formatter' => 'static_field',
),
);
}