Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Commit 9009e57

Browse files
committed
Added checkbox toggle for permalink page.
1 parent b4a23be commit 9009e57

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/modules/dosomething/dosomething_reportback/dosomething_reportback.admin.inc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ function dosomething_reportback_admin_config_form($form, &$form_state) {
2222
'#default_value' => variable_get('dosomething_reportback_log', FALSE),
2323
'#description' => t("Logs Reportback activity. This should be disabled on production."),
2424
);
25+
$form['dosomething_reportback_display_permalink'] = array(
26+
'#type' => 'checkbox',
27+
'#title' => t('Enable permalink page.'),
28+
'#default_value' => variable_get('dosomething_reportback_display_permalink', FALSE),
29+
'#description' => t("Displays the permalink/confirmation page instead of the confirmation page after submitting a reportback."),
30+
);
2531
return system_settings_form($form);
2632
}
2733

@@ -184,7 +190,7 @@ function dosomething_reportback_files_form($form, &$form_state, $status = NULL,
184190
}
185191
$form['actions'] = array('#type' => 'actions');
186192
$form['actions']['submit'] = array(
187-
'#type' => 'submit',
193+
'#type' => 'submit',
188194
'#value' => t('Save')
189195
);
190196
return $form;

0 commit comments

Comments
 (0)