function message_subscribe_ui_tab in Message Subscribe 7
Page callback; Call a view to show the user subscription in a flag.
Parameters
$account: The user object.
$flag_name: The flag name.
Return value
A rendered View, or NULL if View was not found.
1 string reference to 'message_subscribe_ui_tab'
- message_subscribe_ui_menu in message_subscribe_ui/
message_subscribe_ui.module - Implements hook_menu().
File
- message_subscribe_ui/
message_subscribe_ui.module, line 136
Code
function message_subscribe_ui_tab($account, $flag_name = NULL) {
if (!$flag_name) {
// We are inside /message-subscribe so get the first flag.
$flag_name = key(message_subscribe_flag_get_flags());
}
$view = message_subscribe_ui_get_view($account, $flag_name);
return $view ? $view
->preview() : '';
}