function _webform_workflow_node_field_instances in Webform Workflow 7
Get default field instances for nodes.
Return value
array An array of field instance definitions.
1 call to _webform_workflow_node_field_instances()
- webform_workflow_install in ./
webform_workflow.install - Implements hook_install().
File
- includes/
webform_workflow.field_instances.inc, line 13 - Default field instances for the Webform Workflow module.
Code
function _webform_workflow_node_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-webform-webform_workflow_states'
$field_instances['node-webform-webform_workflow_states'] = array(
'bundle' => 'webform',
'deleted' => 0,
'description' => 'Configure the workflow states that can be assigned to this form\'s submissions.',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'webform_workflow_states',
'label' => 'Submission states',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'inline_entity_form',
'settings' => array(
'fields' => array(),
'type_settings' => array(
'allow_existing' => 1,
'delete_references' => 1,
'label_plural' => 'states',
'label_singular' => 'state',
'match_operator' => 'CONTAINS',
'override_labels' => 1,
),
),
'type' => 'inline_entity_form',
'weight' => -4,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Configure the workflow states that can be assigned to this form\'s submissions.');
t('Submission states');
return $field_instances;
}