You are here

public static function WorkflowDefaultWidget::settings in Workflow 7.2

Same name and namespace in other branches
  1. 7 includes/Field/WorkflowDefaultWidget.php \WorkflowDefaultWidget::settings()

Returns the settings.

@todo d8: Replace by the 'annotations' in D8 (See comments above this class).

2 calls to WorkflowDefaultWidget::settings()
workflowfield_field_formatter_info in workflow_field/workflowfield.formatter.inc
Implements hook_field_formatter_info().
workflowfield_field_widget_info in workflow_field/workflowfield.widget.inc
Implements hook_field_widget_info().

File

includes/Field/WorkflowDefaultWidget.php, line 18
Contains workflow\includes\Field\WorkflowDefaultWidget.

Class

WorkflowDefaultWidget
Plugin implementation of the 'workflow_default' widget.

Code

public static function settings() {
  return array(
    'workflow_default' => array(
      'label' => t('Workflow'),
      'field types' => array(
        'workflow',
      ),
      'settings' => array(
        'name_as_title' => 1,
        'fieldset' => 0,
        'comment' => 1,
      ),
    ),
  );
}