function media_wysiwyg_allowed_attributes in D7 Media 7.4
Same name and namespace in other branches
- 7.2 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.
3 calls to media_wysiwyg_allowed_attributes()
- media_wysiwyg_global_js_settings in modules/
media_wysiwyg/ media_wysiwyg.module - Build the global client side settings for wysiwyg editing.
- media_wysiwyg_token_to_markup in modules/
media_wysiwyg/ includes/ media_wysiwyg.filter.inc - Convert a media token into HTML markup.
- media_wysiwyg_token_upgrade_40 in modules/
media_wysiwyg/ includes/ media_wysiwyg.upgrade.inc - Upgrade a single media token from 3.0 to 4.0.
File
- modules/
media_wysiwyg/ media_wysiwyg.module, line 437 - 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-media-key',
));
drupal_alter('media_wysiwyg_allowed_attributes', $allowed_attributes);
return $allowed_attributes;
}