By michaelocana on
Hi,
I want to hide or remove the following info in the page/story editing in the admin page :
- menu settings
- input format
- revision information
- authoring information
- publishing option
can you please direct me what code to customize this editing?
thanks.
Comments
Some of these fields can
Some of these fields can only be moved by authorized users. If you're building the site for another person, you should first check what can this other person see, and what are his/her permissions
page editing
those fields are not necessary during page/story editing in the admin page regardless of user permission, so i want to hide or remove those fields. the most important is the body and title, perhaps the menu settings if needed.
thanks for your reply
Hi any help on this? thanks
Hi any help on this? thanks
With appropriate
With appropriate permissions, user shouldn't be able to see that options.
Anyway, you can always hide those options with a custom module throught the hook form_alter. There you can unset what you want by checking user's role or whatever you want.
hope this may be helpful:)
Hiding "Input format" in page edit form
I specifically look for information to "input format" from the edit page form.
The following code in template.php in my theme has helped to hide other input form fields though.
function mythemename_page_node_form($form) {
$form['author']['#prefix'] = '< div style="display:none;" >';
$form['author']['#suffix'] = '< /div >';
unset($form['menu']);//remove menu options
unset($form['revision_information']);//revistion information
unset($form['comment_settings']);//remove comment settings
unset($form['body_filter']['filter']);//remove input format
unset($form['attachments']);//remove input format
return drupal_render($form);
}