? simple_paypal-D7.patch Index: simple_paypal.info =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/simple_paypal/simple_paypal.info,v retrieving revision 1.3 diff -u -r1.3 simple_paypal.info --- simple_paypal.info 12 Jun 2009 14:28:22 -0000 1.3 +++ simple_paypal.info 24 Sep 2009 17:01:49 -0000 @@ -1,3 +1,8 @@ +; $Id$ + name = Simple Paypal framework description = Simple Paypal framework, for use by other modules. -core = 6.x +core = 7.x + +files[] = simple_paypal.install +files[] = simple_paypal.module Index: simple_paypal.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/simple_paypal/simple_paypal.install,v retrieving revision 1.1 diff -u -r1.1 simple_paypal.install --- simple_paypal.install 1 Oct 2008 21:59:37 -0000 1.1 +++ simple_paypal.install 24 Sep 2009 17:01:49 -0000 @@ -1,9 +1,18 @@ 'Paypal', - 'page callback' => 'drupal_get_form', - 'page arguments' => array('simple_paypal_admin'), - 'description' => 'Administer Paypal', - 'access arguments' => array('access administration pages'), - 'type' => MENU_NORMAL_ITEM, - ); - - return $items; - } + $items = array(); + + $items['admin/config/paypal'] = array( + 'title' => 'PayPal', + 'description' => 'PayPal.', + 'page callback' => 'system_admin_menu_block_page', + 'access arguments' => array('access administration pages'), + 'file' => 'system.admin.inc', + 'file path' => drupal_get_path('module', 'system'), + ); + + $items['admin/config/paypal/settings'] = array( + 'title' => 'PayPal settings', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('simple_paypal_admin'), + 'access arguments' => array('administer site configuration'), + 'description' => 'Administer PayPal.', + ); + + return $items; +} -/** - * Implementation of hook_admin(). - */ function simple_paypal_admin() { $form[SIMPLE_PAYPAL_URL] = array( '#type' => 'select', - '#title' => t('Payment URL for Paypal'), + '#title' => t('Payment URL for PayPal'), '#default_value' => variable_get(SIMPLE_PAYPAL_URL, SIMPLE_PAYPAL_URL_LIVE), '#options' => simple_paypal_get_urls(), '#description' => t('Select whether you want to use a live URL, or a test one.'), @@ -108,7 +113,7 @@ function simple_paypal_ipn_verify($vars = array()) { // If we are in test mode, log the variables. if (SIMPLE_PAYPAL_URL_TEST == variable_get(SIMPLE_PAYPAL_URL, SIMPLE_PAYPAL_URL_TEST)) { - watchdog('simple_paypal', 'Post variables from Paypal IPN
@vars', array( + watchdog('simple_paypal', 'Post variables from PayPal IPN
@vars', array( '@vars' => print_r($vars, TRUE)), WATCHDOG_DEBUG); }