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

Drupal example source code file (content_copy_export_form.tpl.php)

This example Drupal source code file (content_copy_export_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, break, case, count, endif, foreach, id, php, rows, sticky-enabled, table, tbody, thead, tr

The content_copy_export_form.tpl.php Drupal example source code

// $Id: content_copy_export_form.tpl.php,v 2008/10/28 02:11:49 yched Exp $

if ($form['#step'] == 2):
  if ($rows): ?>
    <table id="content-copy-export" class="sticky-enabled">
          <th><?php print t('Export'); ?></th>
          <th><?php print t('Label'); ?></th>
          <th><?php print t('Name'); ?></th>
          <th><?php print t('Type'); ?></th>
        $count = 0;
        foreach ($rows as $row): ?>
          <tr class="<?php print $count % 2 == 0 ? 'odd' : 'even'; ?>">
          switch ($row->row_type):
            case 'field': ?>
              <td><?php print $row->checkbox; ?></td>
              <td><?php print $row->indentation; ?><span class="<?php print $row->label_class; ?>"><?php print $row->human_name; ?></span></td>
              <td><?php print $row->field_name; ?></td>
              <td><?php print $row->type; ?></td>
            <?php break;
            case 'group': ?>
              <td><?php print $row->checkbox; ?></td>
              <td><?php print $row->indentation; ?><span class="<?php print $row->label_class; ?>"><?php print $row->human_name; ?></span></td>
              <td colspan="2"><?php print $row->group_name; ?></td>
              <?php break;
            endswitch; ?>
          <?php $count++;
        endforeach; ?>
  <?php endif;
print $submit; ?>

Other Drupal examples (source code examples)

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