function subscriptions_ui_can_subscribe in Subscriptions 5.2
Same name and namespace in other branches
- 6 subscriptions_ui.module \subscriptions_ui_can_subscribe()
- 7 subscriptions_ui.module \subscriptions_ui_can_subscribe()
- 2.0.x subscriptions_ui/subscriptions_ui.module \subscriptions_ui_can_subscribe()
Returns TRUE on node/NID pages if the NID is not blocked and no other module wants to provide the UI.
3 calls to subscriptions_ui_can_subscribe()
- subscriptions_ui_block in ./
subscriptions_ui.module - Implementation of hook_block().
- subscriptions_ui_link in ./
subscriptions_ui.module - Implementation of hook_link().
- subscriptions_ui_nodeapi in ./
subscriptions_ui.module - Implementation of hook_nodeapi().
File
- ./
subscriptions_ui.module, line 61 - Provides a user interface for Subscriptions.
Code
function subscriptions_ui_can_subscribe() {
global $user;
return $user->uid && arg(0) == 'node' && is_numeric(arg(1)) && module_invoke('subscriptions_ui', 'get_permission_to_handle', arg(1), 'subscriptions_ui') !== FALSE;
}