You are here

function wsclient_permission in Web service client 7

Implements hook_permission().

File

./wsclient.module, line 53
Web service client - module file.

Code

function wsclient_permission() {
  $permissions['administer web services'] = array(
    'title' => t('Administer web service descriptions'),
    'description' => t('Administer web service descriptions that can be used to connect to other sites.'),
  );
  foreach (entity_load_multiple_by_name('wsclient_service', FALSE) as $name => $service) {
    $permissions['interact with  ' . $name] = array(
      'title' => t('Interact with web service %label', array(
        '%label' => $service->label,
      )),
    );
  }
  return $permissions;
}