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

How do I create 2 levels of hiararchy?

Hello,

I need to know how to have 2 levels of hiararchy in my "books". In other words, I want to make one of the pages of a book visible to members of other groups.

converting modules from 4.7 to 5.0: the new uninstall hook for modules..assistance needed...

Hi Guys,

It's late and am stumped trying to get the module uninstall working for the front_page.module...

I've gone through uninstall hook thread, checked out the api docs about uninstall_hook and the handbook pages on updating modules from 4.7 to 5.0...but I'm still stumped.

I have managed to implement a sorta workaround, i.e. there's an uninstall on the new CVS version of the front_page.module that clears any front page settings from the database, reverts important system values back to default and then redirects to the /admin/settings/modules page, so the user can manually disable the module.

I'm stumped on how to do the final "disable module" step..i.e. drupal_uninstall_module($module) doesn't seem to disable the module for me. I've also tried creating a seperate front_page.install file in case that's what the drupal_uninstall_module($module) picks up upon, to no avail.

I hope that makes sense...I thought it better to post up here instead of plodding along into Drupals IRC channels, in case others are having difficulty.

cannot save settings in a function / troubles with $_POST['edit']

hi

i tryed to migrate a module from 4.6 to 4.7. there are so many changes required by foram api... but ok, this seems to be done mostly.

but there is a different problem now. the $_POST['edit'] sometimes does not contain anything. the strange thing, it is filled with a array, build from the form, but if there is a "required" field not filled correctly i get the form back for correction. i i correct now the setting and then POST the form the $_POST['edit'] does not contain anything. i'm realy frustrated... 3 days and no success. what is wrong?

function test() {
       $prefix = 'example';
       $form['config'] = array(
             '#type' => 'fieldset',
             '#title' => t('Test selection'),
       );
       print "testA";
       if ($_POST['edit']) {
              print "testB";

//            does not work (whats wrong???)
              $p = $form_values[$prefix.'_test'];
              print_r ($p);

//            works well
              $p = $_POST['edit'][$prefix.'_test'];
              print_r ($p);
       } else {
              print "testC";
       }

       // blah blah code...

       return $form;
}

If i post this form the first time i get "testA" and "testB". If i repost the form after correcting a value i only get "testA" and never "testB".

PS: this is not the original code, it's an easier stripped example and i must understand...

Dilemma: banners or images?

I am trying to install the banner module on Drupal 4.7, but I have some kind of dilemma...

The install file of the module tells me to:
"1. Go to 'administer -> settings' and configure the file system settings. Make sure that 'Download method' is set to 'Public'."

but...............

if I do that, my images don't show up anymore.... and I have quite a lot of galleries on that website.

I tried the install with the 'Download method' set to 'Private' hoping it's not mandatory, but it doesn't work.

Help, Please. Is it possible to display a pulldown menu option in the webform email as the subject line?

I've got a client who needs to separate out emails based on the issues. The issue options are in a pulldown menu for the user to choose. I need to be able to take the name of the issue and populate the subject line of the email that Webform sends out. Can I do that? I only see the option to use text fields. Is there a way to use PHP in a hidden field to set the subject or some other work around?

My client requires this option and I didn't realize that Webform couldn't do it until now. I'd rather not have to recreate the whole form.

Any help is greatly appreciated!

gradebook.module how it works exactly

I've dropped the gradebook.module into my modules folder, created database tables for the gradebookapi. and created roles named "student", "teacher".

and still getting errors.

I've searched the drupal site and find nothing helpful regarding the gradebook.module.

Can someone help me solve this problem.

Pages

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