page_title-admin-settings-form.tpl.php 612 Bytes
Newer Older
1
2
3
<?php
$rows = array();

4
5
6
7
8
9
10
11
12
13
14
15
16
17
foreach (element_children($form['pattern']) as $key) {
  $title = array(
    '#type' => 'item',
    '#title' => $form['pattern'][$key]['#title'],
    '#required' => $form['pattern'][$key]['#required'],
  );
  unset($form['pattern'][$key]['#title']);

  $row = array(
    drupal_render($title),
    drupal_render($form['pattern'][$key]),
    isset($form['showfield'][$key .'_showfield']) ? drupal_render($form['showfield'][$key .'_showfield']) : '',
  );

18
19
20
  $rows[] = $row;
}

21
print theme('table', array(t('Page Type'), t('Pattern'), t('Show Field')), $rows);
22
23

print drupal_render($form);