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

Drupal example source code file (content-admin-display-overview-form.tpl.php)

This example Drupal source code file (content-admin-display-overview-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

array, as, basic, contexts, endforeach, endif, foreach, if, php, rows, table, tbody, thead, tr

The content-admin-display-overview-form.tpl.php Drupal example source code

// $Id: content-admin-display-overview-form.tpl.php,v 2008/10/09 20:58:26 karens Exp $
  <?php print $help; ?>
<?php if ($rows): ?>
  <table id="content-display-overview" class="sticky-enabled">
        <th><?php print t('Field'); ?></th>
        <?php if ($basic): ?>
          <th><?php print t('Label'); ?></th>
        <?php endif; ?>
        <?php foreach ($contexts as $key => $value): ?>
          <th><?php print $value['title']; ?></th>
          <th><?php print t('Exclude'); ?></th>
        <?php endforeach; ?>
      $count = 0;
      foreach ($rows as $row): ?>
        <tr class="<?php print $count % 2 == 0 ? 'odd' : 'even'; ?>">
          <td><?php print $row->indentation; ?><span class="<?php print $row->label_class; ?>"><?php print $row->human_name; ?></span></td>
          <?php if ($basic): ?>
            <td><?php print $row->label; ?></td>
          <?php endif; ?>
          <?php foreach ($contexts as $context => $title): ?>
            <td><?php print $row->{$context}->format; ?></td>
            <td><?php print $row->{$context}->exclude; ?></td>
          <?php endforeach; ?>
        <?php $count++;
      endforeach; ?>
  <?php print $submit; ?>
<?php endif; ?>

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal content-admin-display-overview-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.