Needs review
Project:
Get Server
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2008 at 00:57 UTC
Updated:
8 Apr 2008 at 00:59 UTC
Would be excellent we could provide a method for extra response types that come out of the get_server module, such as vCard etc.
An implementation of this just looks like
function mymodule_services_encode_response($protocol, $result, $method) {
switch ($protocol) {
case 'vcard':
header("Content-type: text/x-vcard");
header("Content-Disposition: attachment; filename=vcard.vcf");
...
print $vcard;
exit;
break;
}
}
See attached patch
| Comment | File | Size | Author |
|---|---|---|---|
| get_server-pluggable-types.patch | 2.17 KB | dgtlmoon |
Comments
Comment #1
dgtlmoon commentedSomething odd in the patch which might bite your document RCS
but works great otherwise