=== modified file 'sites/all/modules/drupalorg/drupalorg/drupalorg.module' --- sites/all/modules/drupalorg/drupalorg/drupalorg.module 2011-09-12 17:37:03 +0000 +++ sites/all/modules/drupalorg/drupalorg/drupalorg.module 2011-10-25 01:46:59 +0000 @@ -1686,9 +1723,11 @@ // Get the membership display content if ($account->uid === $user->uid) { - $membership_personal = t('Drupal Association memberships pay for improvements to Drupal.org. Please consider purchasing a membership.'); + $membership_personal = t('Hey! Want to support the Drupal Community, Drupal.org\'s infrastructure, and get one of the cool Drupal Association badges on your profile page? Become a member today.'); } + foreach (drupalorg_civimembership_load($account) as $membership) { + if (1==1) { $placeholders = array( '@username' => $account->name, '@membership_type' => drupal_strtolower($membership->membership_type), @@ -1696,38 +1735,35 @@ ); // If membership is new or current, and not the organization owner's. - if (($membership->status === 'New' || $membership->status === 'Current') && (!isset($organization) || $organization->uid !== $account->uid || $membership->membership_type !== 'Organization')) { + if (($membership->status === 'New' || $membership->status === 'Current' || $membership->status === 'Grace') && (!isset($organization) || $organization->uid !== $account->uid || $membership->membership_type !== 'Organization')) { $content['column_2']['membership'][] = array( '#prefix' => '
' . t('Drupal Association @membership_type member', $placeholders) . '

', '#value' => t('@username is an @membership_type member of the Drupal Association, which fosters and supports the Drupal software project, the community and its growth.', $placeholders), '#suffix' => '

', ); } - if ($account->uid === $user->uid) { switch ($membership->status) { case 'New': case 'Current': - $membership_personal = t('Thank you for being a Drupal Association member. Your support helps to fund improvements to Drupal.org. Your membership expires on @expires.', $placeholders); + $membership_personal = t('You Rock! Thank you for purchasing a Drupal Association membership. Your support has helped us to support the Drupal community. We really appreciate your contribution to making Drupal and its community great.
+ Your Membership expires: @expires', $placeholders); break; - case 'Grace': + $membership_personal = t('Oh No! Your membership lapsed on @expires. You\'re awesome, so we are leaving your membership badge up for a bit giving you time to renew. Continue supporting the Drupal Association by renewing your membership', $placeholders); + break; case 'Expired': - $membership_personal = t('Thank you for purchasing a membership. Your support has helped us to improve Drupal.org. Your ongoing support via a membership is appreciated.', $placeholders); - break; - - case 'Deceased': - $membership_personal = t('Thank you for purchasing a membership. Your support has helped us to improve Drupal.org.', $placeholders); + $membership_personal = t('Uh oh! Your Drupal Association membership expired on @expires. Membership helps support the Drupal community and infrastructure improvements to drupal.org, take a minute to renew your membership today.', $placeholders); break; } } } if (isset($membership_personal)) { - $content['column_2']['membership_personal'] = array( + $content['column_2']['membership'][] = array( '#prefix' => '

', '#value' => $membership_personal, '#suffix' => '

', - '#weight' => 1, + '#weight' => -1, ); }