commit c93fc4b2d6c990b6d1e7409b082f209f719c32bf Author: Jesse Hofmann-Smith Date: Thu Apr 21 17:18:26 2011 -0700 updated donor_rally.profile -- removed global fundraising goal diff --git a/donor_rally.profile b/donor_rally.profile index f8389a2..d9e75db 100644 --- a/donor_rally.profile +++ b/donor_rally.profile @@ -60,7 +60,6 @@ function donor_rally_profile_task_list() { $tasks['donor-rally-payment-gateway'] = st('Select Donor Rally payment gateway'); $tasks['donor-rally-modules-batch'] = st('Install Donor Rally modules'); $tasks['donor-rally-configure'] = st('Configure Donor Rally'); - $tasks['donor-rally-configure-goal'] = st('Set Fundraising Goal'); return $tasks; } @@ -222,17 +221,6 @@ function donor_rally_profile_tasks(&$task, $url) { return $output; } else { - variable_set('donor_rally_configured', FALSE); - $task = 'donor-rally-configure-goal'; - } - } - - if ($task == 'donor-rally-configure-goal') { - $output = drupal_get_form('donor_rally_fundraising_goal'); - if (!variable_get('donor_rally_configured', FALSE)) { - return $output; - } - else { // Clean-up install profile variables. variable_del('donor_rally_configured'); variable_set('install_task', 'profile-finished'); @@ -560,34 +548,6 @@ function donor_rally_payment_gateway_form_submit($form, &$form_state) { variable_set('dr_base_payment_gateway', $form_state['values']['dr_base_payment_gateway']); } -/** - * Sitewide fundraising goal. - */ -function donor_rally_fundraising_goal($form_state) { - $form['#redirect'] = FALSE; - $form['dr_base_goal'] = array( - '#type' => 'textfield', - '#title' => st('Total Fundraising Goal'), - '#description' => t('This will be used for the total on the site-wide thermometer.'), - '#required' => TRUE, - '#default_value' => variable_get('dr_base_goal', ''), - ); - - $form['submit'] = array( - '#type' => 'submit', - '#value' => st('Continue'), - ); - return $form; -} - -/** - * Sitewide fundraising goal submit handler. - */ -function donor_rally_fundraising_goal_submit($form, &$form_state) { - variable_set('dr_base_goal', $form_state['values']['dr_base_goal']); - variable_set('donor_rally_configured', TRUE); -} - function _donor_rally_get_payment_gateways() { return array( 'dr_paypal' => st('PayPal'),