Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ftemp_nodeapi(&$node, $op, $teaser, $page) {
- dpr($op);
- dpr($node->type);
- if($node->type!='template')
- return;
- switch ($op) {
- case 'insert':
- case 'update':
- dpr('We are inserting or updating the template.');
- $node->field_xml[0]['value'] = 'It worked!';
- break;
- }
- }
Add Comment
Please, Sign In to add comment