function editor_element_info

Implements hook_element_info().

Extends the functionality of text_format elements (provided by Filter module), so that selecting a text format notifies a client-side text editor when it should be enabled or disabled.

See also

filter_element_info()

File

drupal/core/modules/editor/editor.module, line 56
Adds bindings for client-side "text editors" to text formats.

Code

function editor_element_info() {
  $type['text_format'] = array(
    '#pre_render' => array(
      'editor_pre_render_format',
    ),
  );
  return $type;
}