You are here

function hook_jdrupal_connect_alter in jDrupal 8.0.x

Same name and namespace in other branches
  1. 8 jdrupal.api.php \hook_jdrupal_connect_alter()

Alter the result of the jDrupal Connect resource.

Parameters

$results:

1 invocation of hook_jdrupal_connect_alter()
jDrupalConnect::get in src/Plugin/rest/resource/jDrupalConnect.php

File

./jdrupal.api.php, line 7

Code

function hook_jdrupal_connect_alter($results) {

  // Add some custom data to the result.
  $results['my_module'] = array(
    'hello' => 'world',
    'foo' => array(
      'bar',
      'chew',
    ),
  );
}