function linkit_element_info_alter in Linkit 7.2
Same name and namespace in other branches
- 7.3 linkit.module \linkit_element_info_alter()
- 7 linkit.module \linkit_element_info_alter()
Implements hook_element_info_alter().
File
- ./
linkit.module, line 119 - Main file for linkit module.
Code
function linkit_element_info_alter(&$types) {
if (isset($types['text_format']['#pre_render']) && is_array($types['text_format']['#pre_render'])) {
if (in_array('ckeditor_pre_render_text_format', $types['text_format']['#pre_render'])) {
$types['text_format']['#pre_render'][] = 'linkit_pre_render_ckeditor_element';
}
}
// Append a process function for the field integration.
foreach (linkit_allowed_elements() as $element) {
if (isset($types[$element])) {
$types[$element]['#process'][] = 'linkit_process_widget';
}
}
}