<br><br><div class="gmail_quote">On Fri, Jul 24, 2009 at 1:40 PM, Dipen <span dir="ltr"><<a href="mailto:dipench@gmail.com">dipench@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi sivaji, <br><br> Whats your implementation of hook_access? </blockquote><div><br>There is no hook_access. I just tried to write a hook_access which simply return TRUE on all the case, still its not working.<br> <br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">What all permissions you have defined for importing quiz items? </blockquote><div><br>function questions_import_perm() {<br>
return array('import_questions');<br>}<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is your complete code available somewhere online? </blockquote>
<div><br><a href="http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/quiz/includes/questions_import/?pathrev=DRUPAL-6--4">http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/quiz/includes/questions_import/?pathrev=DRUPAL-6--4</a><br>
<br>This code has no questions node preview or node_preview call. It is written very badly, i am trying to refactor and add preview option to it. I just checking whether node_preview trick will work here or not.<br><br>this is the code which return "access denied page" <a href="http://drupalbin.com/10641">http://drupalbin.com/10641</a> around line no 31<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br clear="all"></blockquote></div><br>-- <br>Thanks<br>Sivaji<br>