Guest User

Untitled

a guest
Jun 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function ftemp_nodeapi(&$node, $op, $teaser, $page) {
  2. dpr($op);
  3. dpr($node->type);
  4.  
  5. if($node->type!='template')
  6. return;
  7.  
  8. switch ($op) {
  9. case 'insert':
  10. case 'update':
  11. dpr('We are inserting or updating the template.');
  12. $node->field_xml[0]['value'] = 'It worked!';
  13. break;
  14. }
  15. }
Add Comment
Please, Sign In to add comment