Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. function worx_blog_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  2.   if ($node->type == 'blog') {
  3.     switch ($op) {
  4.       case 'presave':
  5.         if (!isset($node->nid) && !user_access('publish blogs with out review')) {
  6.           worx_blog_actions($node, $user);
  7.           break;
  8.         }
  9.         if (is_numeric($node->nid) && !user_access('update blogs with out review')) {
  10.           worx_blog_actions($node, $user);
  11.           break;
  12.         }
  13.         break;
  14.     }
  15.   }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement