Skip to content

Instantly share code, notes, and snippets.

View mazewei's full-sized avatar

Matthias Weinhold mazewei

View GitHub Profile
@mazewei
mazewei / drupalgap Extension
Created March 15, 2014 14:28
extension for drupal module DrupalGap. Manipulate the webservice to submit also term names, not only term ids
//TODO backend for configure taxonomy ref fields
/**
* Implements hook_services_request_postprocess_alter().
*/
function bdi_tax_tid_services_request_postprocess_alter($controller, $args, &$result) {
if ($controller['callback'] === '_node_resource_retrieve') {
$fieldnames = array();
//your fieldnames here