You are here

function taxonomy_access_grant_table_header in Taxonomy Access Control 7

Returns a header array for grant form tables.

Return value

array An array of header cell data for a grant table.

2 calls to taxonomy_access_grant_table_header()
taxonomy_access_grant_add_table in ./taxonomy_access.admin.inc
Generates a grant table for adding access rules with one set of values.
taxonomy_access_grant_table in ./taxonomy_access.admin.inc
Generates a grant table for multiple access rules.

File

./taxonomy_access.admin.inc, line 454
Administrative interface for taxonomy access control.

Code

function taxonomy_access_grant_table_header() {
  $header = array(
    array(
      'data' => t('View'),
    ),
    array(
      'data' => t('Update'),
    ),
    array(
      'data' => t('Delete'),
    ),
    array(
      'data' => t('Add Tag'),
    ),
    array(
      'data' => t('View Tag'),
    ),
  );
  foreach ($header as &$cell) {
    $cell['class'] = array(
      'taxonomy-access-grant',
    );
  }
  return $header;
}