You are here

function contribute_menu in Contribute 6

File

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

Code

function contribute_menu() {
  $items['admin/contribute'] = array(
    'title' => 'Charitable contributions',
    'description' => 'Information and settings about contributions',
    'position' => 'right',
    'weight' => -5,
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
  );
  $items['admin/contribute/contributions'] = array(
    'title' => 'contributions',
    'description' => 'View all contributions',
    'page callback' => 'page_show_all_contributions',
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 0,
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/contribute/contribution_recipients'] = array(
    'title' => 'contribution Recipients',
    'description' => 'View all contribution recipients',
    'page callback' => 'page_show_all_contribution_recipients',
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 2,
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/contribute/settings'] = array(
    'title' => 'Settings',
    'description' => 'Modify Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'contribute_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 2,
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/contribute/load_account'] = array(
    'title' => 'Load User Account',
    'description' => 'Use this to load funds or credits into a users account for future contribution',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'load_account_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'weight' => 8,
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}