function workflow_bundle_ctools_settings in Workflow 7.2
Settings form for the 'workflow bundle' access plugin.
1 string reference to 'workflow_bundle_ctools_settings'
- workflow_bundle.inc in workflow_node/
plugins/ access/ workflow_bundle.inc - Describes a CTools Access plugin.
File
- workflow_node/
plugins/ access/ workflow_bundle.inc, line 52 - Describes a CTools Access plugin.
Code
function workflow_bundle_ctools_settings($form, &$form_state, $conf) {
$options = array();
$workflows = workflow_get_workflows();
foreach ($workflows as $value) {
$options[$value->wid] = $value->name;
}
$form['settings']['workflow_bundle'] = array(
'#title' => t('Select workflow'),
'#type' => 'select',
'#options' => $options,
'#description' => t('The pane will only be visible for nodes of content types that belong to this workflow'),
'#default_value' => $conf['workflow_bundle'],
);
return $form;
}