You are here

function theme_auditfiles_notindb_form in Audit Files 6.3

Same name and namespace in other branches
  1. 5 auditfiles.module \theme_auditfiles_notindb_form()
  2. 6.2 notindb.admin.inc \theme_auditfiles_notindb_form()

Theme auditfiles_notindb_form

File

./notindb.admin.inc, line 97
Callback and functions to generate files not in database report

Code

function theme_auditfiles_notindb_form($form) {

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

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

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

    // Construct table of files
    $header = array(
      t('Delete?'),
      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);
  }

  // Return output
  return $output;
}