function uc_repeater_nodeapi in Ubercart 5
File
- uc_repeater/
uc_repeater.module, line 55 - Allows a multisite setup to share changes to the catalog.
Code
function uc_repeater_nodeapi(&$node, $op, $arg3 = null, $arg4 = null) {
if (in_array($node->type, module_invoke_all('product_types'))) {
switch ($op) {
case 'insert':
case 'update':
if ($node->uc_repeater_export) {
// Reset cached nodes to send the new node content.
node_load(0, null, true);
uc_repeater_export($node->nid);
}
break;
}
}
}