Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. function ifactory_og_links_alter(&$links, $group_node) {
  2. global $user;
  3. // Only display group admin details if we have a group context and admin access.
  4. if (($node = og_get_group_context()) && user_access('administer nodes')) {
  5. $links['add'] = l(t('Add Participants'), "og/users/$node->nid/groupadmin");
  6. $links['remove'] = l(t('Remove Participants'), "og/users/$node->nid");
  7. }
  8. //Remove invite a friend link from details block.
  9. unset ($links['invite']);
  10. /* $links['create_idea']['attributes'] = array(
  11. 'title' => $title,
  12. 'class' => 'automodal',
  13. );
  14. */
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement