You are here

function flag_lists_views_form_substitutions in Flag Lists 7.3

Same name and namespace in other branches
  1. 7 flag_lists.module \flag_lists_views_form_substitutions()

Implements hook_views_form_substitutions().

File

./flag_lists.module, line 1775
The Flag Lists module.

Code

function flag_lists_views_form_substitutions() {

  // Views check_plains the column label, so Flag lists needs to do the same
  // in order for the replace operation to succeed.
  $select_all_placeholder = check_plain('<!--flag-lists-ops-select-all-->');
  $select_all = array(
    '#type' => 'checkbox',
    '#default_value' => FALSE,
    '#attributes' => array(
      'class' => array(
        'flo-table-select-all',
      ),
      'title' => array(
        t('Select all'),
      ),
    ),
  );
  return array(
    $select_all_placeholder => drupal_render($select_all),
  );
}