Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ifactory_og_links_alter(&$links, $group_node) {
- global $user;
- // Only display group admin details if we have a group context and admin access.
- if (($node = og_get_group_context()) && user_access('administer nodes')) {
- $links['add'] = l(t('Add Participants'), "og/users/$node->nid/groupadmin");
- $links['remove'] = l(t('Remove Participants'), "og/users/$node->nid");
- }
- //Remove invite a friend link from details block.
- unset ($links['invite']);
- /* $links['create_idea']['attributes'] = array(
- 'title' => $title,
- 'class' => 'automodal',
- );
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement