Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Critical
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.3
-
Fix Version/s: 1.4
-
Component/s: Technical infrastructure
-
Labels:None
Description
Note that CRM_Utils_Hook_Drupal::pre is calling the Drupal hook_civicrm_pre with the calling conventions for CRM_Utils_Hook_Drupal::post. If this were ever called, it would likely cause a run-time error.
$params really need to get passed; it looks like this is the place to inject custom data into the object creation process.
<pre>
function pre( $op, $objectName, $id, &$params ) {
// copied from user_module_invoke
foreach (module_list() as $module) {
$function = $module . '_civicrm_pre';
if ( function_exists( $function ) )
}
}
</pre>