Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Returns HTML for email footer.
- *
- * @param $variables
- * An array containing 'node' => $node object.
- * @return
- * HTML code for footer.
- */
- function theme_og_mailinglist_mail_footer($variables) {
- $node = $variables['node'];
- if (!$node) {
- return;
- }
- $absolute = array('absolute' => TRUE);
- $full = url("node/" . $node->nid, $absolute);
- $subscriptions = url("og_mailinglist/subscriptions", $absolute);
- $unsubscribe = url("og_mailinglist/unsubscribe/" . $node->nid, $absolute);
- $grouppage = url("node/" . $node->og_group_ref['und'][0]['target_id'], $absolute); //Shai added this line to link to the group page where a user can click the unsubscribe link generated by organic groups
- $footer = '--<br />'
- . t('Read or respond on the web: @link', array('@link' => $full))
- . '<br />'
- . t('Manage group subscription: @link', array('@link' => $grouppage))
- . '<br />';
- // Shai removed broken link . t('Manage my subscriptions: @link', array('@link' => $subscriptions))
- // Shai remove . '<br />'
- // Shai removed broken link . t('Stop emails for this post: @link', array('@link' => $unsubscribe))
- // Shai . '<br />';
- return $footer;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement