function _ckeditor_filter_process_attributes in CKEditor Filter 7
Runs html attribute against defined values
1 call to _ckeditor_filter_process_attributes()
- _ckeditor_filter_process_recursive in ./
ckeditor_filter.module - Recursive call to process html block
File
- ./
ckeditor_filter.module, line 145 - Provides an input filter that allows site administrators configure which HTML elements, attributes and style properties are allowed.
Code
function _ckeditor_filter_process_attributes(&$e, $all_attributes, $attributes) {
// diff has un-allowed
$delete_attrs = array_diff(array_keys($all_attributes), $attributes);
if (!empty($delete_attrs)) {
// remove un-allowed
foreach ($delete_attrs as $attr) {
$e
->removeAttribute($attr);
}
}
}