Drupal: Redirect Authorize.net Purchase if PayPerNode


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. $nodetypes = node_get_types('names');
  3.  
  4. foreach ($nodetypes as $key => $type){
  5. if (paypernode_user_can_create($key) > 0):
  6. drupal_goto('node/add/' . $key);
  7. endif;
  8. }
  9.  
  10. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.