You are here

function elasticsearch_connector_element_info in Elasticsearch Connector 7

Same name and namespace in other branches
  1. 8.7 elasticsearch_connector.module \elasticsearch_connector_element_info()
  2. 8 elasticsearch_connector.module \elasticsearch_connector_element_info()
  3. 8.2 elasticsearch_connector.module \elasticsearch_connector_element_info()
  4. 8.5 elasticsearch_connector.module \elasticsearch_connector_element_info()
  5. 8.6 elasticsearch_connector.module \elasticsearch_connector_element_info()
  6. 7.5 elasticsearch_connector.module \elasticsearch_connector_element_info()
  7. 7.2 elasticsearch_connector.module \elasticsearch_connector_element_info()

Implements hook_element_info()

File

./elasticsearch_connector.module, line 187
This module provide an interface to connecting to the elasticsearch cluster and implementing the official Elasticsearch library.

Code

function elasticsearch_connector_element_info() {
  return array(
    'ec_clusters' => array(
      '#input' => TRUE,
      '#multiple' => FALSE,
      '#theme' => 'select',
      '#theme_wrappers' => array(
        'form_element',
      ),
      '#process' => array(
        '_elasticsearch_connector_ec_clusters_process',
      ),
    ),
    'ec_index' => array(
      '#input' => TRUE,
      '#tree' => TRUE,
      '#multiple' => FALSE,
      '#theme_wrappers' => array(
        'form_element',
      ),
      '#process' => array(
        '_elasticsearch_connector_ec_index_process',
      ),
      '#attached' => _elasticsearch_connector_ec_index_attached(),
    ),
  );
}