You are here

function _elasticsearch_ec_index_attached in Elasticsearch Connector 8

Same name and namespace in other branches
  1. 8.7 elasticsearch_connector.module \_elasticsearch_ec_index_attached()
  2. 8.2 elasticsearch_connector.module \_elasticsearch_ec_index_attached()
  3. 8.5 elasticsearch_connector.module \_elasticsearch_ec_index_attached()
  4. 8.6 elasticsearch_connector.module \_elasticsearch_ec_index_attached()

Attach required javascript for the ec_index element.

Return value

array

1 call to _elasticsearch_ec_index_attached()
elasticsearch_connector_element_info in ./elasticsearch_connector.module
Implements hook_element_info().

File

./elasticsearch_connector.module, line 97
Provides hook implementations and functions accessible from other modules.

Code

function _elasticsearch_ec_index_attached() {
  return array(
    'js' => array(
      drupal_get_path('module', 'elasticsearch') . '/js/ec-index.js',
    ),
    'css' => array(
      drupal_get_path('module', 'elasticsearch') . '/css/ec-index.css',
    ),
    'library' => array(
      array(
        'system',
        'ui.dialog',
      ),
    ),
  );
}