diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-11-15 23:42:45 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-11-15 23:42:45 -0200 |
commit | 738a8cbff948d04c8000e7066ee0d652ee267d9f (patch) | |
tree | 9ac1fcfea22518ef88b330d939999d01da01a764 | |
parent | 38a54e4530a15d18bc1b7855c2c0c75697027e1a (diff) | |
download | muamba-738a8cbff948d04c8000e7066ee0d652ee267d9f.tar.gz muamba-738a8cbff948d04c8000e7066ee0d652ee267d9f.tar.bz2 |
Adding admin callback
-rw-r--r-- | muamba.admin.inc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/muamba.admin.inc b/muamba.admin.inc new file mode 100644 index 0000000..cafc7b3 --- /dev/null +++ b/muamba.admin.inc @@ -0,0 +1,20 @@ +<?php + +/** + * @file + * Muamba admin callbacks. + */ + +/** + * Menu callback. + */ +function muamba_config_form($form, &$form_state) { + $form['muamba_reject_all_on_accept'] = array( + '#type' => 'checkbox', + '#title' => t('Reject all pending requests upon acceptance'), + '#default_value' => variable_get('muamba_reject_all_on_accept', FALSE), + '#description' => t('Cancel all other requests of an item upon acceptance'), + ); + + return system_settings_form($form); +} |