user_login; } return $default_value; case 'count': return SubscriberModel::filter('subscribed') ->count(); default: if(preg_match('/cf_(\d+)/', $action, $custom_field) && !empty($subscriber['id']) ) { $custom_field = SubscriberCustomField ::where('subscriber_id', $subscriber['id']) ->where('custom_field_id', $custom_field[1]) ->findOne(); return ($custom_field) ? $custom_field->value : false; } return false; } } }