You are here

function theme_workspace_list in Workspace 6

Same name and namespace in other branches
  1. 7 workspace.module \theme_workspace_list()

Theme the list of content. Turn the results into a table.

2 calls to theme_workspace_list()
workspace_list_comments in ./workspace.module
Menu callback. Display list of comments.
workspace_list_content in ./workspace.module
Menu callback. Display list of content.
1 theme call to theme_workspace_list()
workspace_list_files in ./workspace.module
Menu callback. List file attachments managed by upload.module.

File

./workspace.module, line 444
Presents a user-centric view of content.

Code

function theme_workspace_list($header, $rows, $max, $cols) {
  if ($rows) {
    $pager = theme('pager', NULL, $max);
    if (!empty($pager)) {
      $rows[] = array(
        array(
          'data' => $pager,
          'colspan' => $cols,
        ),
      );
    }
    $output = theme('table', $header, $rows);
  }
  else {
    $output = t('Your workspace is currently empty.');
  }
  return $output;
}