Guest User

Untitled

a guest
Aug 16th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. /**
  2. * Implementation of hook_nodeapi().
  3. */
  4. function mymodule_nodeapi(&$node, $op, $a3, $a4) {
  5. switch ($op) {
  6. case 'presave':
  7. if ($node->type == 'client') {
  8. $node->title = 'Some Value';
  9. }
  10. break;
  11. }
  12. }
Add Comment
Please, Sign In to add comment