This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

return a user to another page

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.

Thanks

drupal_execute return value

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?

Stopping Spammers at the Gate

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.

Help me with this PHP exec() problem

In my module I have the following lines of code to fetch a URL in the background using wget:

$script = "wget -b '$url' -a '/home/user/wget.log' -O -";

$path = "/usr/bin/";
if (file_exists($path."wget")) {
    drupal_set_message ("wget==".$path.$script);
    exec($path.$script);
    return true;
}

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.

Not able Play flash file using Wijering Flash

Hello ,

Problem: Not able to play flash file using Wijering Flash

Procedure I have Followed to install Wijering Flash:

1) install SWFTools

2) put Wijering Flash player into module/swftools/shared/flash_media_player/mediaplayer.swf

3) changed setting in SWFTOOLS -> File handling to play a flash file using Wijering Flash player

4) Create a new content and attached flash file

but still not able to play a flash video

Please, Help me out

Thank YOu in Advace

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions