Same name and namespace in other branches
  1. 6.x includes/theme.inc \theme_table_select_header_cell()

Returns a header cell for tables that have a select all functionality.

Related topics

3 theme calls to theme_table_select_header_cell()
comment_admin_overview in modules/comment/comment.module
theme_node_admin_nodes in modules/node/node.module
Theme node administration overview.
theme_user_admin_account in modules/user/user.module
Theme user administration overview.

File

includes/theme.inc, line 833
The theme system, which controls the output of Drupal.

Code

function theme_table_select_header_cell() {
  drupal_add_js(array(
    'tableSelect' => array(
      'selectAll' => t('Select all rows in this table'),
      'selectNone' => t('Deselect all rows in this table'),
    ),
  ), 'setting');
  drupal_add_js('misc/tableselect.js');
  return array(
    'class' => 'select-all',
  );
}