You are here

function media_wysiwyg_format_form_preview in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 modules/media_wysiwyg/includes/media_wysiwyg.pages.inc \media_wysiwyg_format_form_preview()
  2. 7.2 modules/media_wysiwyg/includes/media_wysiwyg.pages.inc \media_wysiwyg_format_form_preview()

AJAX callback to select portion of format form to be updated with a preview.

Parameters

array $form: An associative array containing the structure of the form.

array $form_state: An associative array containing the current state of the form.

Return value

array The preview form item.

1 string reference to 'media_wysiwyg_format_form_preview'
media_wysiwyg_format_form_view_mode in modules/media_wysiwyg/includes/media_wysiwyg.pages.inc
Add ajax preview when selecting view mode in wysiwyg editor.

File

modules/media_wysiwyg/includes/media_wysiwyg.pages.inc, line 237
Common pages for the Media WYSIWYG module.

Code

function media_wysiwyg_format_form_preview($form, $form_state) {
  return $form['preview']['thumbnail'];
}