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

Diff of /contributions/modules/preprocess_order_corrector/preprocess_order_corrector.module

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

revision 1.1, Sat Dec 20 23:27:21 2008 UTC revision 1.1.2.1, Thu Apr 16 02:00:20 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: preprocess_order_corrector.module $  // $Id: preprocess_order_corrector.module,v 1.1 2008/12/20 23:27:21 effulgentsia Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 16  function preprocess_order_corrector_them Line 16  function preprocess_order_corrector_them
16      if (is_array($aInfo['preprocess functions']) && count($aInfo['preprocess functions']) > 1) {      if (is_array($aInfo['preprocess functions']) && count($aInfo['preprocess functions']) > 1) {
17        $aPreprocessFunctions = array();        $aPreprocessFunctions = array();
18        foreach ($aInfo['preprocess functions'] as $sFunctionName) {        foreach ($aInfo['preprocess functions'] as $sFunctionName) {
19          list($sPrefix, $sSuffix) = explode('_preprocess_', $sFunctionName, 2);          $a = explode('_preprocess_', $sFunctionName, 2);
20            $sPrefix = isset($a[0]) ? $a[0] : '';
21            $sSuffix = isset($a[1]) ? $a[1] : '';
22          $aPreprocessFunctions[$sPrefix][$sSuffix] = $sFunctionName;          $aPreprocessFunctions[$sPrefix][$sSuffix] = $sFunctionName;
23        }        }
24        $aInfo['preprocess functions'] = array();        $aInfo['preprocess functions'] = array();

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2