RSS

(root)/drupal/7-fic : 14.1.14 : modules/node/node.module

« back to all changes in this revision

Viewing changes to modules/node/node.module

bzr
2008-12-20 19:00:05
This revision was merged to the branch mainline in revision 316.
Revision ID: bzr@web3.fourkitchens.com-20081220190005-uq28yg3zmtg98v4w
Scheduled update from HEAD: Sat Dec 20 19:00:05 GMT 2008

Show diffs side-by-side

added added

removed removed

1
1
<?php
2
 
// $Id: node.module,v 1.1003 2008/12/16 23:57:32 dries Exp $
 
2
// $Id: node.module,v 1.1004 2008/12/20 18:24:38 dries Exp $
3
3
 
4
4
/**
5
5
 * @file
382
382
  // Initialize it to maximum in order to find the minimum.
383
383
  $min_rpos = $max_rpos;
384
384
 
385
 
  // Store the reverse of the teaser.  We use strpos on the reversed needle and
 
385
  // Store the reverse of the teaser. We use strpos on the reversed needle and
386
386
  // haystack for speed and convenience.
387
387
  $reversed = strrev($teaser);
388
388
 
417
417
 
418
418
    // If a break point was found in this group, slice and return the teaser.
419
419
    if ($min_rpos !== $max_rpos) {
420
 
      // Don't slice with length 0.  Length must be <0 to slice from RHS.
 
420
      // Don't slice with length 0. Length must be <0 to slice from RHS.
421
421
      return ($min_rpos === 0) ? $teaser : substr($teaser, 0, 0 - $min_rpos);
422
422
    }
423
423
  }
1003
1003
 
1004
1004
    // When inserting a node, $node->log must be set because
1005
1005
    // {node_revision}.log does not (and cannot) have a default
1006
 
    // value.  If the user does not have permission to create
 
1006
    // value. If the user does not have permission to create
1007
1007
    // revisions, however, the form will not contain an element for
1008
1008
    // log so $node->log will be unset at this point.
1009
1009
    if (!isset($node->log)) {
1011
1011
    }
1012
1012
 
1013
1013
    // For the same reasons, make sure we have $node->teaser and
1014
 
    // $node->body.  We should consider making these fields nullable
 
1014
    // $node->body. We should consider making these fields nullable
1015
1015
    // in a future version since node types are not required to use them.
1016
1016
    if (!isset($node->teaser)) {
1017
1017
      $node->teaser = '';
3012
3012
 */
3013
3013
function theme_node_links($element) {
3014
3014
  return theme('links', $element['#value'],  array('class' => 'links inline'));
3015
 
}
 
 
'\\ No newline at end of file'
 
3015
}

Loggerhead 1.17 is a web-based interface for Bazaar branches