function button_field_widget_settings in Button Field 6
Implementation of hook_widget_settings().
Parameters
string $op:
array $widget:
Return value
array
File
- ./
button_field.module, line 198 - Defines a field, widget and formatter for the button field type.
Code
function button_field_widget_settings($op, $widget) {
// check to see if we are saving
if ($op == 'save') {
return array(
'text',
'image_path',
'title_text',
'alt_text',
'additional_class',
'edit_hidden',
);
}
// end if we are saving
// determine which widget was selected
switch ($widget['type']) {
case 'button_field_html':
return _button_field_widget_settings_html($op, $widget);
break;
case 'button_field_image':
return _button_field_widget_settings_image($op, $widget);
break;
}
// end switch $widget['type']
}