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

Drupal example source code file (views-ui-edit-item.tpl.php)

This example Drupal source code file (views-ui-edit-item.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

class, defaulted, div, else, empty, endif, fields, foreach, if, no_fields, overridden, php, pid, views-category-title

The views-ui-edit-item.tpl.php Drupal example source code

<?php
// $Id: views-ui-edit-item.tpl.php,v 1.9 2008/08/08 16:57:44 merlinofchaos Exp $
/**
 * @file views-ui-edit-item.tpl.php
 *
 * This template handles the printing of fields/filters/sort criteria/arguments or relationships.
 */
?>
<?php print $rearrange; ?>
<?php print $add; ?>
<div class="views-category-title<?php
  if ($overridden) {
    print ' overridden';
  }
  if ($defaulted) {
    print ' defaulted';
  }
  ?>">
  <?php print $item_help_icon; ?>
  <?php print $title; ?>
</div>

<div class="views-category-content<?php
  if ($overridden) {
    print ' overridden';
  }
  if ($defaulted) {
    print ' defaulted';
  }
  ?>">
  <?php if (!empty($no_fields)): ?>
    <div><?php print t('The style selected does not utilize fields.'); ?></div>
  <?php elseif (empty($fields)): ?>
    <div><?php print t('None defined'); ?></div>
  <?php else: ?>
    <?php foreach ($fields as $pid => $field): ?>
      <?php if (!empty($field['links'])): ?>
        <?php print $field['links']; ?>
      <?php endif; ?>
      <div class="<?php print $field['class']; if (!empty($field['changed'])) { print ' changed'; } ?>">
        <?php print $field['title']; ?>
        <?php print $field['info']; ?>
      </div>
    <?php endforeach; ?>
  <?php endif; ?>
</div>

Other Drupal examples (source code examples)

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