Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Implements hook_form_FORM_ID_alter().
- *
- * Specifically get the view content page form, look for the bulk field in the header, and add a non-item as default
- */
- function HOOK_form_views_form_content_page_1_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) {
- if (isset($form['header']['node_bulk_form']['action']['#type']) && $form['header']['node_bulk_form']['action']['#type'] === 'select') {
- $form['header']['node_bulk_form']['action']['#options'] = array('' => '- Select Action -') + $form['header']['node_bulk_form']['action']['#options'];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement