You are here

function hook_scald_wysiwyg_context_list_alter in Scald: Media Management made easy 7

Alters contexts available in the wysiwyg editor, per atom type.

Allows modules to modify the context list that will be available to choose from in the wysiwyg editor's "Edit atom properties" dialog.

1 function implements hook_scald_wysiwyg_context_list_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

scald_image_scald_wysiwyg_context_list_alter in modules/providers/scald_image/scald_image.module
Implements hook_scald_wysiwyg_context_list_alter().
1 invocation of hook_scald_wysiwyg_context_list_alter()
dnd_scald_wysiwyg_context_list in modules/library/dnd/dnd.module
Get the list of Scald contexts that can be used in a WYSIWYG, keyed by type.

File

./scald.api.php, line 401
Hooks related to Scald atoms and providers.

Code

function hook_scald_wysiwyg_context_list_alter(&$contexts) {
  unset($contexts['image']['Library_representation']);
  $contexts['image']['sdl_editor_representation'] = t('Default');
}