You are here

function button_field_field_settings_form in Button Field 7

Implements hook_field_settings_form().

File

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

Code

function button_field_field_settings_form($field, $instance, $has_data) {
  return array(
    'confirmation' => array(
      '#type' => 'textfield',
      '#title' => t('Confirmation message'),
      '#default_value' => isset($field['settings']['confirmation']) ? $field['settings']['confirmation'] : FALSE,
      '#description' => t('You may enter a confirmation message to be ' . 'displayed to the user before running any rules. If you do not ' . 'want the user to see a confirmation message you can leave this ' . 'setting empty.'),
    ),
  );
}