Ejemplo n.º 1
0
function bfox_bp_plans_get_active_schedule_ids()
{
    global $bfox_bp_plans_active_schedule_ids, $user_ID;
    if (!isset($bfox_bp_plans_active_schedule_ids)) {
        if ($user_ID) {
            $bfox_bp_plans_active_schedule_ids = BfoxReadingSchedule::get(BfoxReadingSchedule::add_user_to_args($user_ID, array('date' => BfoxReadingSchedule::date())));
        } else {
            $bfox_bp_plans_active_schedule_ids = array();
        }
    }
    return (array) $bfox_bp_plans_active_schedule_ids;
}