You are here

function theme_scald_dailymotion_search_results_table in Scald: Media Management made easy 6

Themes the results table.

1 theme call to theme_scald_dailymotion_search_results_table()
scald_dailymotion_search_form in scald_dailymotion/scald_dailymotion.pages.inc
Generates the search and search results form.

File

scald_dailymotion/scald_dailymotion.pages.inc, line 103
Contains form handlers for the DailyMotion search form.

Code

function theme_scald_dailymotion_search_results_table($form) {
  $headers = array(
    t('Import'),
    t('Title'),
    t('Thumbnail'),
  );
  $rows = array();
  foreach (element_children($form) as $key) {

    // Render our row
    $row = array();
    $row[] = drupal_render($form[$key]['checkbox']);
    $row[] = drupal_render($form[$key]['title']);
    $row[] = drupal_render($form[$key]['thumbnail']);

    // And add it to the list of table rows.
    $rows[] = $row;
  }
  return theme('table', $headers, $rows);
}