'fieldset', '#title' => t('Workflow form styles'), '#description' => t('') ); $radio_options = array( WORKFLOW_EXTENSIONS_UI_RADIOS => t('Radio buttons (classic style)'), WORKFLOW_EXTENSIONS_UI_BUTTONS => t('Single-action buttons'), WORKFLOW_EXTENSIONS_UI_DROPDOWN => t('Dropdown selector') ); $form['workflow_extensions_forms']['workflow_extensions_ui_style'] = array( '#type' => 'radios', '#title' => t("Select the form style you'd like to use for changing workflow states"), '#options' => $radio_options, '#default_value' => variable_get('workflow_extensions_ui_style', WORKFLOW_EXTENSIONS_UI_BUTTONS), '#description' => t('') ); // Buttons $form['workflow_extensions_buttons'] = array( '#type' => 'fieldset', '#title' => t('Workflow labels'), '#description' => t('Define fixed-text or tokenized labels to appear on the workflow state change form.') ); $form['workflow_extensions_buttons']['workflow_extensions_change_state_form_title'] = array( '#type' => 'textfield', '#title' => t('Title to appear above the state change radio buttons or dropdown selector'), '#default_value' => variable_get('workflow_extensions_change_state_form_title', ''), '#description' => t('Use <none> to have no title. If left blank the title is of the format Change [workflow-name] state:. Your text may contain replacement tokens. Tokens require the Token module to be enabled.') ); $form['workflow_extensions_buttons']['workflow_extensions_default_save_button_label'] = array( '#type' => 'textfield', '#title' => t('Label for the button on the edit form that saves content without changing the workflow state'), '#default_value' => variable_get('workflow_extensions_default_save_button_label', ''), '#description' => t('Applies only when Single-action buttons is selected above. Example: Save, don\'t change state. If left blank, the label will be the Workflow module default, i.e. Save. Your text may contain replacement tokens, e.g. Save "[title]" to drafts. Tokens require the Token module to be enabled.') ); $form['workflow_extensions_buttons']['workflow_extensions_change_state_button_label'] = array( '#type' => 'textfield', '#title' => t('Label pattern for button (or buttons) for transitioning workflow state'), '#default_value' => variable_get('workflow_extensions_change_state_button_label', ''), '#description' => t('Example: Update [workflow-name] state. If Single-action buttons is selected above, use replacement tokens or leave blank. When left blank in single-action mode, the pattern applied is Move to "[workflow-new-state-name]". For the others styles the default is Submit. Other useful tokens you may want to use are [workflow-name], [workflow-current-state-name] and [author-name]. Note that your entry applies only to transitions for which no label is already supplied via module Workflow Named Transitions, if enabled.') ); // Comments $form['workflow_extensions_comments'] = array( '#type' => 'fieldset', '#title' => t('Workflow comments'), '#description' => t('') ); $form['workflow_extensions_comments']['workflow_extensions_allow_blank_comments'] = array( '#type' => 'checkbox', '#title' => t('Allow blank workflow log comments (ticked is the default)'), '#default_value' => variable_get('workflow_extensions_allow_blank_comments', TRUE), '#description' => t('If ticked and no comment is entered when transitioning state, a blank comment will be attached by default.') ); // Schedule $form['workflow_extensions_schedule'] = array( '#type' => 'fieldset', '#title' => t('Workflow schedule'), '#description' => t('') ); $form['workflow_extensions_schedule']['workflow_extensions_display_schedule_toggle'] = array( '#type' => 'checkbox', '#title' => t('Show the form for scheduling workflow transitions only upon selection by the user'), '#default_value' => variable_get('workflow_extensions_display_schedule_toggle', TRUE), '#description' => t('This prevents users from entering scheduled dates and times and then forgetting to activate the form. Only applies when the user has the "schedule workflow transition" permission.') ); return system_settings_form($form); }