You are here

function clients_connections_checkbox_options in Web Service Clients 7

Same name and namespace in other branches
  1. 6.2 clients.module \clients_connections_checkbox_options()
  2. 7.3 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 717
Clients module - handles keys and service connections and provides an API for clients

Code

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