You are here

function ckeditor_swf_process_textarea in CKEditor SWF - Enhanced Flash embedding plugin 6

1 string reference to 'ckeditor_swf_process_textarea'
ckeditor_swf_elements in ./ckeditor_swf.module
Implementation of hook_elements().

File

./ckeditor_swf.module, line 45
24.01.2010 Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function ckeditor_swf_process_textarea($element) {
  static $added = FALSE;
  if (!$added) {
    $js = drupal_add_js(NULL, 'setting');
    foreach ($js['setting'] as $array) {
      if (isset($array['ckeditor'])) {
        drupal_add_js(array(
          'ckeditor_swf' => array(
            'module_path' => base_path() . drupal_get_path('module', 'ckeditor_swf'),
            'getinfo_path' => url('ckeditor_swf/getinfo'),
          ),
        ), 'setting');
        $added = TRUE;
        break;
      }
    }
  }
  return $element;
}