You are here

function linkit_textarea in Linkit 6

1 string reference to 'linkit_textarea'
linkit_elements in ./linkit.module
Implementation of hook_elements().

File

./linkit.module, line 94
Main file for linkit module.

Code

function linkit_textarea($element, $form_state) {
  if (isset($element['#process'])) {
    if (in_array('bueditor_textarea', $element['#process'])) {
      _linkit_add_settings('bueditor');
      drupal_add_js(drupal_get_path('module', 'linkit') . '/editors/bueditor/editor_plugin.js');
    }
  }
  return $element;
}