You are here

public function ctools_export_ui::list_table_header in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 plugins/export_ui/ctools_export_ui.class.php \ctools_export_ui::list_table_header()

Provide the table header.

If you've added columns via list_build_row() but are still using a table, override this method to set up the table header.

1 call to ctools_export_ui::list_table_header()
ctools_export_ui::list_render in plugins/export_ui/ctools_export_ui.class.php
Render all of the rows together.
2 methods override ctools_export_ui::list_table_header()
ctools_custom_content_ui::list_table_header in ctools_custom_content/plugins/export_ui/ctools_custom_content_ui.class.php
Provide the table header.
stylizer_ui::list_table_header in stylizer/plugins/export_ui/stylizer_ui.class.php
Provide the table header.

File

plugins/export_ui/ctools_export_ui.class.php, line 571

Class

ctools_export_ui
Base class for export UI.

Code

public function list_table_header() {
  $header = array();
  if (!empty($this->plugin['export']['admin_title'])) {
    $header[] = array(
      'data' => t('Title'),
      'class' => array(
        'ctools-export-ui-title',
      ),
    );
  }
  $header[] = array(
    'data' => t('Name'),
    'class' => array(
      'ctools-export-ui-name',
    ),
  );
  $header[] = array(
    'data' => t('Storage'),
    'class' => array(
      'ctools-export-ui-storage',
    ),
  );
  $header[] = array(
    'data' => t('Operations'),
    'class' => array(
      'ctools-export-ui-operations',
    ),
  );
  return $header;
}