Fix for content access #drupaljam6

  1. <?php
  2. /**
  3.  * Implementation of hook_access();
  4.  */
  5. function mymodule_access($op, $node, $account) {
  6.   if ($op == 'view') {
  7.     return user_access('view mynodetype', $account);
  8.   }
  9. }
  10.  
  11.  
  12. /**
  13.  * Callback for 'mymodule/page'.
  14.  */
  15. function mymodule_page_callback() {
  16.   $rs = db_query("SELECT n.nid FROM {node} n WHERE n.status=1");
  17.   ...
  18. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.