'content_id_display', 'default' => '', 'ftype' => 'form-data'),
);
// Start the template and output buffering
startTemplate();
$templatePageTitle = getLanguageText('TEXT-PAGE-CONTENT-ADMINISTRATION');
$headerArgs = "";
// Ensure that only valid user types have access to this module
$AllowedUserTypes = array('SuperUser','System Administrator','Application Administrator','Communications Administrator');
if (checkPermission($AllowedUserTypes) != 1) {
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
$action = '';
$naction = '';
header("Location: /?action=$action&naction=$naction$headerArgs&form_message=" . urlencode($form_message) . "&error_message=" . urlencode($error_message));
exit();
}
include "form.js.php";
?>
(page_content.dialog.php
// emits id='dialog_content'), and only ever calls .summernote('code', ...) on it --
// it never runs .summernote({...}), so the editor comes up with default options:
// no Gallery button and no upload callback. summernote.images.php supplies both and
// is already parameterised by $fieldName, so point it at the dialog's textarea.
$fieldName = 'dialog_content';
$windowHeight = 450;
include "summernote.images.php";
?>