You are here

function fckeditor_elements in FCKeditor - WYSIWYG HTML editor 5

Same name and namespace in other branches
  1. 5.2 fckeditor.module \fckeditor_elements()
  2. 6.2 fckeditor.module \fckeditor_elements()
  3. 6 fckeditor.module \fckeditor_elements()

Implementation of textarea

File

./fckeditor.module, line 97
FCKeditor Module for Drupal 5.x

Code

function fckeditor_elements() {
  $type = array();
  if (user_access('use advanced fckeditor') || user_access('use default fckeditor')) {

    // only roles with permission get the fckeditor
    if (fckeditor_is_compatible_client()) {

      // it would be useless to dig deeper if we're not able or allowed to
      $type['textarea'] = array(
        '#process' => array(
          'fckeditor_process_textarea' => array(),
        ),
      );
    }
  }
  return $type;
}