You are here

function old_subscriptions_ui_can_subscribe in Subscriptions 2.0.x

Returns TRUE on node/NID pages if the NID is not blocked and no other module wants to provide the UI.

Return value

bool

File

subscriptions_ui/subscriptions_ui.module, line 155
Provides a user interface for Subscriptions.

Code

function old_subscriptions_ui_can_subscribe() {
  global $user;
  $arg1 = subscriptions_arg(1, 'nid');
  return $user->uid && subscriptions_arg(0) == 'node' && is_numeric($arg1) && module_invoke('subscriptions_ui', 'get_permission_to_handle', $arg1, 'subscriptions_ui') !== FALSE;
}