function restws_get_format_info in RESTful Web Services 7.2
Same name and namespace in other branches
- 7 restws.module \restws_get_format_info()
Returns info about all defined formats.
4 calls to restws_get_format_info()
- restws_format in ./
restws.module - Returns an instance of a format.
- restws_format_mimetype in ./
restws.module - Returns the format instance for a given MIME type.
- restws_menu_alter in ./
restws.module - Implements hook_menu_alter().
- _restws_determine_router_item in ./
restws.module - Reroute requests that come from *.{format} paths. For example /node/2.json will need a correct page callback to be treated as a restws request.
File
- ./
restws.module, line 29 - RESTful web services module.
Code
function restws_get_format_info() {
$info =& drupal_static(__FUNCTION__);
if (!isset($info)) {
$info = module_invoke_all('restws_format_info');
drupal_alter('restws_format_info', $info);
}
return $info;
}