From 1b3338e47ebf6680e534b797b0e60bcf27b0d90c Mon Sep 17 00:00:00 2001 From: Seth Shaw Date: Wed, 2 Dec 2020 12:17:39 -0800 Subject: [PATCH] hide node_referenced_by_node in block placement UI ... also sort them. --- islandora.module | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/islandora.module b/islandora.module index 88db562d..85771ee3 100644 --- a/islandora.module +++ b/islandora.module @@ -414,16 +414,17 @@ function islandora_form_block_form_alter(&$form, FormStateInterface $form_state, // /admin/structure/context instead if you want to use these conditions // to alter block layout. unset($form['visibility']['content_entity_type']); - unset($form['visibility']['parent_node_has_term']); - unset($form['visibility']['node_had_namespace']); - unset($form['visibility']['media_has_term']); unset($form['visibility']['file_uses_filesystem']); - unset($form['visibility']['node_has_term']); - unset($form['visibility']['node_has_parent']); - unset($form['visibility']['media_uses_filesystem']); unset($form['visibility']['media_has_mimetype']); - unset($form['visibility']['node_is_islandora_object']); + unset($form['visibility']['media_has_term']); unset($form['visibility']['media_is_islandora_media']); + unset($form['visibility']['media_uses_filesystem']); + unset($form['visibility']['node_had_namespace']); + unset($form['visibility']['node_has_parent']); + unset($form['visibility']['node_has_term']); + unset($form['visibility']['node_is_islandora_object']); + unset($form['visibility']['node_referenced_by_node']); + unset($form['visibility']['parent_node_has_term']); } /**