You are here

function button_field_field_widget_info in Button Field 7

Implements hook_field_widget_info().

File

./button_field.module, line 160
Defines a field, widget and formatter for the button field type.

Code

function button_field_field_widget_info() {
  return array(
    'button_field_html' => array(
      'label' => 'HTML Button',
      'field types' => array(
        'button_field',
      ),
      'settings' => array(
        'text' => NULL,
        'additional_classes' => NULL,
        'edit_hidden' => 1,
      ),
    ),
    'button_field_image' => array(
      'label' => 'Image Button',
      'field types' => array(
        'button_field',
      ),
      'settings' => array(
        'image_path' => NULL,
        'alt_text' => NULL,
        'title_text' => NULL,
        'additional_classes' => NULL,
        'edit_hidden' => 1,
      ),
    ),
  );
}