--- custom_formatters.admin.inc +++ (clipboard) @@ -222,10 +222,10 @@ // Custom Formatter preview. if (module_exists('devel_generate')) { + $preview = theme('custom_formatters_preview', $formatter); $form['preview'] = array( '#type' => 'fieldset', '#title' => t('Preview'), - '#description' => '
' . t('Note') . ': ' . t('Be aware that previews are only available if a module provides support for !develgen and is not guaranteed to be an exact representation of the formatter. It is recommended to test the formatter on an active node for the best results.', array('!develgen' => '' . t('Devel Generate') . '')) . '
', ); + $form['preview_results'] = array( + '#type' => 'fieldset', + '#title' => t('Preview results'), + '#description' => '