You are here

function _assets_get_wysiwyg_modes in Asset 7

Helper function to get wysiwyg modes.

4 calls to _assets_get_wysiwyg_modes()
assets_pre_render_text_format in ./asset.module
This function adds a settings required by assets
asset_form_field_ui_display_overview_form_alter in ./asset.module
Implements hook_form_FORM_ID_alter().
theme_asset_widget_view_mode_switch_block in modules/asset_widget/theme/theme.inc
Return html for asset view mode switch block.
_assets_in_editor_form_add_default_fields in includes/asset.admin.inc
Adds a fields for an asset tag values to the given form.

File

./asset.module, line 1104
Asset module.

Code

function _assets_get_wysiwyg_modes($bundle) {
  $settings = variable_get('assets_wysiwyg_modes', array());
  return isset($settings[$bundle]) ? $settings[$bundle] : array();
}