function media_wysiwyg_allowed_attributes in D7 Media 7.2
Same name and namespace in other branches
- 7.4 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_allowed_attributes()
- 7.3 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_allowed_attributes()
Returns the set of allowed attributes for use with WYSIWYG.
Return value
array An array of whitelisted attributes.
2 calls to media_wysiwyg_allowed_attributes()
- media_wysiwyg_pre_render_text_format in modules/
media_wysiwyg/ media_wysiwyg.module - Builds a map of media tags in the element.
- media_wysiwyg_token_to_markup in modules/
media_wysiwyg/ includes/ media_wysiwyg.filter.inc - Replace callback to convert a media file tag into HTML markup.
File
- modules/
media_wysiwyg/ media_wysiwyg.module, line 389 - Primarily Drupal hooks.
Code
function media_wysiwyg_allowed_attributes() {
// Support the legacy variable for this.
$allowed_attributes = variable_get('media_wysiwyg_wysiwyg_allowed_attributes', array(
'alt',
'title',
'height',
'width',
'hspace',
'vspace',
'border',
'align',
'style',
'class',
'id',
'usemap',
'data-picture-group',
'data-picture-align',
'data-picture-mapping',
'data-delta',
));
drupal_alter('media_wysiwyg_allowed_attributes', $allowed_attributes);
return $allowed_attributes;
}