You are here

function hook_restws_format_info_alter in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.api.php \hook_restws_format_info_alter()

Alter available format information.

Parameters

array $format_info: Format information as defined in hook_restws_format_info()

See also

hook_restws_format_info()

Related topics

1 invocation of hook_restws_format_info_alter()
restws_get_format_info in ./restws.module
Returns info about all defined formats.

File

./restws.api.php, line 105
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_restws_format_info_alter(&$format_info) {
  $format_info['json']['class'] = 'MyJsonFormatHandler';
}