home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (page_title-admin-settings-form.tpl.php)

This example Drupal source code file (page_title-admin-settings-form.tpl.php) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

_showfield, array, as, drupal_render, foreach, isset, item, key, php, required, rows, title, unset, variable

The page_title-admin-settings-form.tpl.php Drupal example source code

// $Id: page_title-admin-settings-form.tpl.php,v 2009/10/31 22:18:54 njt1982 Exp $

 * @file
 * Tempalte file for the admin settings form. Displays configuration in a neat table

$rows = array();

foreach (element_children($form['pattern']) as $key) {
  $title = array(
    '#type' => 'item',
    '#title' => $form['pattern'][$key]['#title'],
    '#required' => $form['pattern'][$key]['#required'],

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

  $rows[] = $row;

print theme('table', array(t('Page Type'), t('Token Scope'), t('Pattern'), t('Show Field')), $rows);

print drupal_render($form);

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal page_title-admin-settings-form.tpl.php source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.