You are here

function theme_views_send_select_all in Views Send 7

Returns the 'select all' div that gets inserted above the view results for non-table style plugins.

The actual insertion is done by JS, matching the degradation behavior of Drupal core (no JS - no select all).

1 theme call to theme_views_send_select_all()
views_send_form_alter in ./views_send.module
Implements hook_form_alter().

File

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

Code

function theme_views_send_select_all($variables) {
  $form = array();
  $form['select_all'] = array(
    '#type' => 'fieldset',
    '#attributes' => array(
      'class' => array(
        'views-send-fieldset-select-all',
      ),
    ),
  );
  $form['select_all']['this_page'] = array(
    '#type' => 'checkbox',
    '#title' => t('Select all items on this page'),
    '#default_value' => '',
    '#attributes' => array(
      'class' => array(
        'views-send-select-this-page',
      ),
    ),
  );
  $output = '<div class="views-send-select-all-markup">';
  $output .= drupal_render($form);
  $output .= '</div>';
  return $output;
}