/[drupal]/contributions/modules/computed_field/computed_field.module
ViewVC logotype

Diff of /contributions/modules/computed_field/computed_field.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.17.2.5, Mon May 18 23:49:00 2009 UTC revision 1.17.2.6, Tue May 19 00:44:17 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: computed_field.module,v 1.17.2.4 2008/10/17 21:21:05 moonshine Exp $  // $Id: computed_field.module,v 1.17.2.5 2009/05/18 23:49:00 moonshine Exp $
3    
4  /**  /**
5   * Implementation of cck hook_field_info()   * Implementation of cck hook_field_info()
# Line 157  function computed_field_field($op, &$nod Line 157  function computed_field_field($op, &$nod
157          return array($field['field_name'] => $node_field);          return array($field['field_name'] => $node_field);
158        }        }
159        break;        break;
160        case 'sanitize':
161          // compute field for node previews
162          if ($node->build_mode == NODE_BUILD_PREVIEW) {
163            _computed_field_compute_value($node, $field, $node_field);
164          }
165          break;
166      case 'view':      case 'view':
167        if ($field['display']) {        if ($field['display']) {
168          $items = array();          $items = array();

Legend:
Removed from v.1.17.2.5  
changed lines
  Added in v.1.17.2.6

  ViewVC Help
Powered by ViewVC 1.1.2