function media_wysiwyg_global_js_settings in D7 Media 7.4
Build the global client side settings for wysiwyg editing.
1 call to media_wysiwyg_global_js_settings()
- media_wysiwyg_pre_render_text_format in modules/
media_wysiwyg/ media_wysiwyg.module - Builds a map of media tags in the element.
File
- modules/
media_wysiwyg/ media_wysiwyg.module, line 196 - Primarily Drupal hooks.
Code
function media_wysiwyg_global_js_settings() {
$settings = array(
'tokenSchema' => media_wysiwyg_schema_token('js'),
'wysiwygAllowedAttributes' => media_wysiwyg_allowed_attributes(),
'doLinkText' => (bool) variable_get('media_wysiwyg_use_link_text_for_filename', 1),
'overridableFields' => media_wysiwyg_overridable_fields(),
'attributeFields' => media_wysiwyg_get_attribute_fields(),
);
return $settings;
}