You are here

function assets_set_wysiwyg_modes in Asset 7

Helper function to set wysiwyg modes.

7 calls to assets_set_wysiwyg_modes()
assets_field_ui_display_overview_form_submit in ./asset.module
Custom submit handler.
asset_audio_install in modules/asset_audio/asset_audio.install
Implements hook_install().
asset_document_install in modules/asset_document/asset_document.install
Implements hook_install().
asset_freehtml_install in modules/asset_freehtml/asset_freehtml.install
Implements hook_install().
asset_gallery_install in modules/asset_gallery/asset_gallery.install
Implements hook_install().

... See full list

File

./asset.module, line 1112
Asset module.

Code

function assets_set_wysiwyg_modes($bundle, $settings) {
  $current_settings = variable_get('assets_wysiwyg_modes', array());
  $current_settings[$bundle] = $settings;
  variable_set('assets_wysiwyg_modes', $current_settings);
}