function xcal_format_rest_server_response_formatters_alter in Services 6.3
File
- servers/
rest_server/ formats/ xcal_format.module, line 11
Code
function xcal_format_rest_server_response_formatters_alter(&$formatters) {
$formatters['xcal'] = array(
'model' => 'ResourceTimeFeedModel',
'mime types' => array(
'application/xcal+xml',
),
'view' => 'XCalFormatView',
);
$formatters['ical'] = array(
'model' => 'ResourceTimeFeedModel',
'mime types' => array(
'text/calendar',
),
'view' => 'XCalFormatView',
'view arguments' => array(
'transform' => 'ical',
),
);
}