You are here

function theme_cmis_query_results in CMIS API 6.2

Same name and namespace in other branches
  1. 6.4 cmis_query/cmis_query.module \theme_cmis_query_results()
  2. 6.3 cmis_query/cmis_query.module \theme_cmis_query_results()
  3. 7.2 cmis_query/cmis_query.module \theme_cmis_query_results()
  4. 7 cmis_query/cmis_query.module \theme_cmis_query_results()

Theme function for CMIS query search results

1 theme call to theme_cmis_query_results()
cmis_query_view in cmis_query/cmis_query.pages.inc
Implementation of hook_view()

File

cmis_query/cmis_query.theme.inc, line 6

Code

function theme_cmis_query_results($rows) {
  if (empty($rows)) {
    return '<div class="empty-search">There are no results for your search.</div>';
  }
  $contents = "<br /><b>Query results</b><br />";
  $header = array(
    t('name'),
    t('type'),
    t('size'),
    t('author'),
    t('last modified'),
  );
  $contents .= theme('table', $header, $rows);
  return $contents;
}