Commit 637f0f48 authored by APolitsin's avatar APolitsin
Browse files

hide meta

parent 460795e0
...@@ -15,6 +15,10 @@ class FormAlter extends ControllerBase { ...@@ -15,6 +15,10 @@ class FormAlter extends ControllerBase {
public static function hook(&$form, &$form_state, $form_id) { public static function hook(&$form, &$form_state, $form_id) {
// Создание и редактирование материала. // Создание и редактирование материала.
if (strpos($form_id, 'node_') === 0) { if (strpos($form_id, 'node_') === 0) {
// Meta-data
if (isset($form['meta'])) {
$form['meta']['#access'] = FALSE;
}
// Revision Log - спрятать. // Revision Log - спрятать.
if (isset($form['revision_log'])) { if (isset($form['revision_log'])) {
$form['revision_log']['#type'] = 'hidden'; $form['revision_log']['#type'] = 'hidden';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment