You are here

function drd_server_drd_config_domain in Drupal Remote Dashboard Server 6.2

Same name and namespace in other branches
  1. 7.2 drd_server.module \drd_server_drd_config_domain()

Implements hook_drd_config_domain().

Return value

array Form definition for domain settings.

File

./drd_server.module, line 252

Code

function drd_server_drd_config_domain() {
  $form = array();
  $block_list = array();
  foreach (module_implements('block_info') as $module) {
    foreach (module_invoke($module, 'block_info') as $key => $block) {
      $block_list[$module . ':' . $key] = $block['info'];
    }
  }
  $form['drd_server_blocks'] = array(
    '#type' => 'checkboxes',
    '#title' => 'Blocks to display',
    '#options' => $block_list,
    '#default_value' => variable_get('drd_server_blocks', array()),
  );
  return $form;
}