This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/core/modules/action/action.views_execution.inc

25 lines
630 B
PHP
Raw Normal View History

<?php
/**
* @file
* Provides views runtime hooks for action.module.
*/
use Drupal\Component\Utility\SafeMarkup;
/**
* Implements hook_views_form_substitutions().
*/
function action_views_form_substitutions() {
// Views SafeMarkup::checkPlain()s the column label, so we need to match that.
$select_all_placeholder = SafeMarkup::checkPlain('<!--action-bulk-form-select-all-->');
$select_all = array(
'#type' => 'checkbox',
'#default_value' => FALSE,
'#attributes' => array('class' => array('action-table-select-all')),
);
return array(
$select_all_placeholder => drupal_render($select_all),
);
}