You are here

function hook_clients_resource_type_info in Web Service Clients 7.3

Inform Clients about resource types.

Return value

array An array of information on the resource types implemented by a module, keyed by the machine-readable name for the type. Each type is itself an array, with following keys: 'label': the human-readable label. 'description': (optional) A more detailed description of the type.

1 function implements hook_clients_resource_type_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

clients_resource_remote_views_block_clients_resource_type_info in resources/clients_resource_remote_views_block/clients_resource_remote_views_block.module
Implements hook_clients_resource_type_info().
1 invocation of hook_clients_resource_type_info()
clients_get_resource_types in ./clients.module
Get a list of all resource types.

File

./clients.api.php, line 112
Hooks provided by the Clients module.

Code

function hook_clients_resource_type_info() {
  return array(
    'my_resource' => array(
      'label' => t('My resource type'),
    ),
  );
}