Function reference: Sections

"Sections" are the areas of a document edit tab, e.g. Resource content and Template Variable.

mm_renameSection($section, $newlabel, $roles, $templates)

Renames one of the default sections within the document edit page.

$section: The name of the section this should apply to (from 'section names' table). Can only accept single section [Required]
$newlabel: The new text for the label[Required]
$roles: comma separated list of role IDs this should be applied to. Leave empty (or omit) for all roles [Optional - default is all]
$templates: comma separated list of template IDs this should be applied to. Leave empty (or omit) for all templates [Optional - default is all]

mm_renameSection('content', 'Technical stuff', '2'); // Rename the document content section for users with role "2"mm_renameSection('tvs', 'Other info'); // Rename the Template Variables section to "Other info" for all users

mm_hideSections($sections, $roles, $templates)

Hides one or more of the default sections within the document edit page.

$sections: The name(s) of the sections this should apply to (from 'section names' table). Can accept multiple sections separated by commas [Required]
$roles: comma separated list of role IDs this should be applied to. Leave empty (or omit) for all roles [Optional - default is all]
$templates: comma separated list of template IDs this should be applied to. Leave empty (or omit) for all templates [Optional - default is all]

mm_hideSections('tvs'); // Hide the template variables section for all usersmm_hideSections('content,tvs', '1', '3'); // Hide the content and Template Variables sections for users with role "1" editing documents using template ID "3"