You are here

function clients_connections_checkbox_options in Web Service Clients 6.2

Same name and namespace in other branches
  1. 7.3 clients.module \clients_connections_checkbox_options()
  2. 7 clients.module \clients_connections_checkbox_options()
  3. 7.2 clients.module \clients_connections_checkbox_options()

FormAPI helper to get a list of clients for a checkboxes form element.

Parameters

$types: (optional) Specify a single type or a list of types to include. If omitted, all are returned.

File

./clients.module, line 440
Clients module provides a UI, storage, and an API for handling connections to remote webservices, including those provided by Services module on other Drupal sites.

Code

function clients_connections_checkbox_options($types = array()) {
  $options = array();
  foreach (clients_connection_load_all($types) as $name => $connection) {
    $options[$name] = $name;
  }
  return $options;
}