Update to Drupal 8.2.2. For more information, see https://www.drupal.org/project/drupal/releases/8.2.2
This commit is contained in:
parent
23ffed3665
commit
507b45a0ed
378 changed files with 11434 additions and 5542 deletions
|
|
@ -12,6 +12,7 @@ use Drupal\Core\Entity\EntityTypeInterface;
|
|||
use Drupal\Core\Url;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
use Drupal\taxonomy\VocabularyInterface;
|
||||
use Drupal\user\Entity\User;
|
||||
|
||||
/**
|
||||
|
|
@ -295,7 +296,7 @@ function forum_form_taxonomy_vocabulary_form_alter(&$form, FormStateInterface $f
|
|||
// Forum's vocabulary always has single hierarchy. Forums and containers
|
||||
// have only one parent or no parent for root items. By default this value
|
||||
// is 0.
|
||||
$form['hierarchy']['#value'] = TAXONOMY_HIERARCHY_SINGLE;
|
||||
$form['hierarchy']['#value'] = VocabularyInterface::HIERARCHY_SINGLE;
|
||||
// Do not allow to delete forum's vocabulary.
|
||||
$form['actions']['delete']['#access'] = FALSE;
|
||||
// Do not allow to change a vid of forum's vocabulary.
|
||||
|
|
|
|||
Reference in a new issue