You are here

function context_export_ui::list_render in Context 7.3

Same name and namespace in other branches
  1. 6.3 context_ui/export_ui/context_export_ui.class.php \context_export_ui::list_render()
  2. 6 context_ui/export_ui/context_export_ui.class.php \context_export_ui::list_render()

Render all of the rows together.

By default we place all of the rows in a table, and this should be the way most lists will go.

Whatever you do if this method is overridden, the ID is important for AJAX so be sure it exists.

Overrides ctools_export_ui::list_render

File

context_ui/export_ui/context_export_ui.class.php, line 22

Class

context_export_ui
CTools export UI extending class. Slightly customized for Context.

Code

function list_render(&$form_state) {
  $table = array(
    'header' => $this
      ->list_table_header(),
    'rows' => $this->rows,
    'attributes' => array(
      'class' => array(
        'context-admin',
      ),
      'id' => 'ctools-export-ui-list-items',
    ),
  );
  return theme('table', $table);
}