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.
function editor_element_info() {
$type['text_format'] = array(
'#pre_render' => array(
'editor_pre_render_format',
),
);
return $type;
}