Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function worx_blog_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
- if ($node->type == 'blog') {
- switch ($op) {
- case 'presave':
- if (!isset($node->nid) && !user_access('publish blogs with out review')) {
- worx_blog_actions($node, $user);
- break;
- }
- if (is_numeric($node->nid) && !user_access('update blogs with out review')) {
- worx_blog_actions($node, $user);
- break;
- }
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement