function sarnia_field_widget_info in Sarnia 7
Implements hook_field_widget_info().
Provide a "no input" widget so that Field UI doesn't barf on the fact that Sarnia fields have no widget (since they're read only).
File
- ./
sarnia.module, line 696
Code
function sarnia_field_widget_info() {
return array(
'sarnia_no_input' => array(
'label' => 'No widget',
'description' => 'Do not provide an input form for this field.',
'field types' => array(
'sarnia',
),
'settings' => array(),
),
);
}