I'm adding a cloning function to the panels module and (correct me if I'm wrong) I think this line : return 'admin/panels'; is instrumental in returning the user to the www.example.com/admin/panels page. I've added the line into my function and instead of returning me to the admin/panels page, it prints 'admin/panels' to the screen. I'm wondering what I'm missing. Any help would be greatly appreciated.
In my module's form_submit function I call drupal_execute to process the form of another module. Depending on whether there was a validation error from drupal_execute, I would like to redirect to a different page.
I've tried to dump what drupal_executes returns, but nothing gets dumped.
Is there a way read/determine the output of drupal_exectue?
Greetings, everyone. I'm currently helping out with the administration of two different popular Drupal installations, and they handle spammers the same way--by approving or not approving their accounts when they register (the idea being that spammers are easy to spot). Typically, we're dealing with at least 1-3 of these per day, which can add up pretty quickly.
the exec() command never seems to run (hosted on linux) in the course of module execution, but if I cut and paste the output from the drupal_set_message() into my ssh shell, it runs perfectly.