You are here

function contribute_settings in Contribute 6

1 string reference to 'contribute_settings'
contribute_menu in ./contribute.module

File

./contribute.module, line 194
Lets users contribute to projects

Code

function contribute_settings() {
  $options = node_get_types('names');
  $form['contribute_node_types'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Users will be able to contribute to these project types'),
    '#options' => $options,
    '#default_value' => variable_get('contribute_node_types', array(
      'page',
    )),
    '#description' => t('A form will be available for users to contribute money on these content types'),
  );
  $form['minimum_maximum'] = array(
    '#type' => 'fieldset',
    '#title' => 'Minimum and Maximum Values',
  );
  $form['minimum_maximum']['contribute_minimum_contribution'] = array(
    '#type' => 'textfield',
    '#title' => t('Minimum contribution'),
    '#default_value' => variable_get('contribute_minimum_contribution', '100'),
    '#description' => t('This is the minimum amount a user can contribute, in USD'),
  );
  $form['minimum_maximum']['contribute_minimum_budget'] = array(
    '#type' => 'textfield',
    '#title' => t('Minimum budget'),
    '#default_value' => variable_get('contribute_minimum_budget', '1000'),
    '#description' => t('This is the minimum budget for a recipient node, in USD'),
  );
  $form['minimum_maximum']['contribute_maximum_budget'] = array(
    '#type' => 'textfield',
    '#title' => t('Maximum budget'),
    '#default_value' => variable_get('contribute_maximum_budget', '10000'),
    '#description' => t('This is the maximum budget for a recipient node, in USD'),
  );
  return system_settings_form($form);
}