You are here

function views_send_views_form_substitutions in Views Send 7

Implements hook_views_form_substitutions().

File

./views_send.module, line 95
The Views Send module.

Code

function views_send_views_form_substitutions() {

  // Views check_plains the column label, so do the same here in order for the
  // replace operation to succeed.
  $select_all_placeholder = check_plain('<!--views-send-select-all-->');
  $select_all = array(
    '#type' => 'checkbox',
    '#default_value' => FALSE,
    '#attributes' => array(
      'class' => array(
        'views-send-table-select-all',
      ),
    ),
  );
  return array(
    $select_all_placeholder => drupal_render($select_all),
  );
}