You are here

function Notifications_Custom_Subscription::is_visible in Notifications 6.4

Check visibility of this subscription type

1 call to Notifications_Custom_Subscription::is_visible()
Notifications_Custom_Subscription::form_element in notifications_custom/notifications_custom.class.inc
Format as a form element, which may be a visible checkbox or a hidden field

File

notifications_custom/notifications_custom.class.inc, line 57
Drupal Notifications Framework - Default class file

Class

Notifications_Custom_Subscription
Message destination class

Code

function is_visible($user_registration = FALSE) {
  return user_access('administer users') || $user_registration ? $this
    ->get_type('register') : $this
    ->get_type('visibility');
}