You are here

function asset_textarea in Asset 5

Same name and namespace in other branches
  1. 6 asset.module \asset_textarea()

The #process callback function for the textareas

File

./asset.module, line 604

Code

function asset_textarea($element) {
  if (_asset_page_match()) {
    $output = theme('asset_textarea_link', $element);
    $element['#suffix'] .= $output;
    if (module_exists('tinymce')) {
      drupal_add_js(drupal_get_path('module', 'asset') . '/tinymce/asset_tinymce_helper.js');
    }
  }
  return $element;
}