function ad_channel_nodeapi in Advertisement 5.2
Same name and namespace in other branches
- 6.3 channel/ad_channel.module \ad_channel_nodeapi()
- 6.2 channel/ad_channel.module \ad_channel_nodeapi()
- 7 channel/ad_channel.module \ad_channel_nodeapi()
Implementation of hook_nodeapi().
File
- channel/
ad_channel.module, line 192 - Ad Channel
Code
function ad_channel_nodeapi($node, $op, $arg = 0) {
switch ($op) {
case 'load':
return _ad_channel_load_node($node);
case 'insert':
case 'update':
return _ad_channel_save_node($node);
case 'delete':
return _ad_channel_delete_node($node);
case 'validate':
return _ad_channel_validate_nodes($node);
}
}