You are here

public static function WorkflowDefaultWidget::settings in Workflow 7

Same name and namespace in other branches
  1. 7.2 includes/Field/WorkflowDefaultWidget.php \WorkflowDefaultWidget::settings()
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 29
Contains workflow\includes\Field\WorkflowDefaultWidget.

Class

WorkflowDefaultWidget
Plugin implementation of the 'workflow_default' widget. @todo D8: Replace "extends WorkflowD7WidgetBase" by "extends WidgetBase" or perhaps by "extends OptionsWidgetBase" from Options module.

Code

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