$type) { $node_options[$key] = $type->name; } $form['calais_geo_nodes_enabled'] = array( '#type' => 'checkboxes', '#title' => t('Which types should allow calais geo terms to be added to a map'), '#default_value' => variable_get('calais_geo_nodes_enabled', array_keys($node_options)), '#options' => $node_options, '#description' => t('Check the node types that will display the Calais geo node fieldset.'), ); $entities = calais_get_entity_vocabularies(); $form['calais_geo_vocabularies'] = array( '#type' => 'checkboxes', '#title' => t('Which Calais Vocabularies do you want available for geomapping?'), '#default_value' => variable_get('calais_geo_vocabularies', $entities), '#options' => array_flip($entities), '#description' => t("Choose which vocabulary's terms can be used to represent markers in a map display (this is a node-specific selection available in the Locations field group on the node's edit page."), ); return system_settings_form($form); }