You are here

function theme_flashnode_import_form in Flash Node 6.3

Same name and namespace in other branches
  1. 5.6 flashnode.module \theme_flashnode_import_form()
  2. 5.3 flashnode.module \theme_flashnode_import_form()
  3. 6.2 flashnode.import.inc \theme_flashnode_import_form()

Theme flashnode_import_form

File

./flashnode.import.inc, line 162

Code

function theme_flashnode_import_form($form) {

  // Render help message
  $output .= drupal_render($form['help']);

  // Render count
  $output .= drupal_render($form['count']);

  // If there are files found
  if (isset($form['file']) && is_array($form['file'])) {

    // Construct table of files
    $header = array(
      theme('table_select_header_cell'),
      t('File'),
    );
    foreach (element_children($form['file']) as $key) {
      $row = array();
      $row[] = drupal_render($form['files'][$key]);
      $row[] = drupal_render($form['file'][$key]);
      $rows[] = $row;
    }

    // Render themed table
    $output .= theme('table', $header, $rows);

    // Render actions
    $output .= drupal_render($form['submit']);
  }

  // Return output
  return $output;
}