| 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 |
| 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(); |