Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
synhelper
Commits
637f0f48
Commit
637f0f48
authored
May 18, 2018
by
APolitsin
Browse files
hide meta
parent
460795e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Hook/FormAlter.php
View file @
637f0f48
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment