public static function is_subscribable($forum) {
        return (isloggedin() && !isguestuser() &&
                !\mod_forum\subscriptions::is_forcesubscribed($forum) &&
                !\mod_forum\subscriptions::subscription_disabled($forum));
    }
public static function is_subscribable($forum) {
        return (isloggedin() && !isguestuser() &&
                !\mod_forum\subscriptions::is_forcesubscribed($forum) &&
                !\mod_forum\subscriptions::subscription_disabled($forum));
    }
public static function is_subscribable ( $ forum ) { return ( isloggedin ( ) && ! isguestuser ( ) && ! \ mod_forum \ subscriptions :: is_forcesubscribed ( $ forum ) && ! \ mod_forum \ subscriptions :: subscription_disabled ( $ forum ) ) ; }
Helper to determine whether the specified forum can be subscribed to.

@param \stdClass $forum The record of the forum to test
@return bool
Helper to determine whether the specified forum can be subscribed to .