Browse Source

hide node_referenced_by_node in block placement UI

... also sort them.
pull/808/head
Seth Shaw 4 years ago committed by GitHub
parent
commit
1b3338e47e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      islandora.module

15
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 // /admin/structure/context instead if you want to use these conditions
// to alter block layout. // to alter block layout.
unset($form['visibility']['content_entity_type']); 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']['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']['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_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']);
} }
/** /**

Loading…
Cancel
Save