You are here

function theme_path_redirect_node_form_list in Path redirect 5

File

./path_redirect.module, line 523

Code

function theme_path_redirect_node_form_list(&$form) {
  if (count(element_children($form['redirects']))) {
    $header = array(
      t('From'),
      t('To'),
      t('Type'),
      array(
        'data' => t('Operations'),
        'colspan' => 3,
      ),
    );
    foreach (element_children($form['redirects']) as $key) {
      $rows[] = array(
        drupal_render($form['redirects'][$key]['path']),
        drupal_render($form['redirects'][$key]['redirect']),
        drupal_render($form['redirects'][$key]['type']),
        drupal_render($form['redirects'][$key]['test']),
        drupal_render($form['redirects'][$key]['edit']),
        drupal_render($form['redirects'][$key]['delete']),
      );
    }
    return theme('table', $header, $rows);
  }
}