function clients_flickr_clients_fields in Web Service Clients 6
Same name and namespace in other branches
- 7 backends/clients_flickr/clients_flickr.module \clients_flickr_clients_fields()
Implementation of hook_clients_fields - refactor as inc file? Allows us to get field for a specific resource. Default fields are set at the connection type level here and additional custom field will be defined per resource (@todo). This will allow adding of remote cck fields (for example) for a specific resource (e.g. a certain view). This function will need to aggregate these with the base ones. (Otherwise this function is used to return all available fields.)
File
- backends/
clients_flickr/ clients_flickr.module, line 316 - Flickr plugin for Clients module @author Django Beatty - adub
Code
function clients_flickr_clients_fields($resource = NULL) {
if ($resource->cid) {
$connection = clients_connection_load((int) $resource->cid);
if ($connection->type != variable_get('clients_flickr_type', 'Flickr')) {
return;
}
}
// etc - http://www.flickr.com/services/api/flickr.photos.search.html
return array();
}