You are here

function og_notifications_grouptype_user_page in Organic groups 5.8

Same name and namespace in other branches
  1. 5 og_notifications/og_notifications.module \og_notifications_grouptype_user_page()
  2. 5.3 og_notifications/og_notifications.module \og_notifications_grouptype_user_page()
  3. 5.7 og_notifications/og_notifications.module \og_notifications_grouptype_user_page()
  4. 6 modules/og_notifications/og_notifications.module \og_notifications_grouptype_user_page()

Menu callback: Since the default notifications UI lists group and grouptype as separate entries, redirect the grouptype management link to the group management page.

Parameters

Object $account: User object of the user whose grouptypes are to be managed.

1 string reference to 'og_notifications_grouptype_user_page'
og_notifications_menu in og_notifications/og_notifications.module
Implementation of hook_menu().

File

og_notifications/og_notifications.module, line 477
Provide notifications and messaging support for organic groups.

Code

function og_notifications_grouptype_user_page($account) {
  drupal_goto('user/' . $account->uid . '/notifications/group');
}