function action_views_form_substitutions

Implements hook_views_form_substitutions().

File

drupal/core/modules/action/action.views.inc, line 31
Provides views data and handlers for action.module.

Code

function action_views_form_substitutions() {

  // Views check_plains the column label, so by doing it matches for the
  // replacement.
  $select_all_placeholder = check_plain('<!--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),
  );
}