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

Replacing OG Checkboxes with Select Box Causes Node to Not Have OG

I'm trying to modify OG's default behavior of allowing checkboxes so that a select box displays instead. I can remove the checkboxes and insert the select box easily with hook_form_alter, but now whenever I attempt to submit the form the organic group I set in the select box is not set for the node. I've combed through og.module and haven't been able determine how $node->og_groups gets set - any help regarding this would be greatly appreciated.

Force Personal Contact Form for all users

Currently, users at my site have the option of enabling or disabling their personal contact forms. I'd like to force it to be enabled for all users. (Ideally, I'd like to remove the checkbox option from the profile edit page as well, although just rendering it useless works also.)

I'm rather new to Drupal, and loving it, but I wasn't able to find anyway to force this option. I've searched the forums.

Thanks!

Advanced members module

I am looking at writing a module that will allow users to view all of the members in my organization in a list and be able to click on thier name and show their more detailed profile. Also, I need a way to be able to create the organizational hierarchy in Drupal, such as president, secretary, and other committee positions. Is there any modules I can do this with already or is it something I am going to have to write?

file_save_upload permissions set to 664

I'm creating a module that allows a user to upload a file. I use the function file_save_upload to save the file, and this works fine, but when I want to delete the file using file_delete, it doesn't get deleted. I think it may be because of the permissions on the file that gets uploaded - I checked, and the permissions are 664.

Is there a way to change the permissions of the file within drupal? Any other ideas of how to upload and then delete a file correctly?

Thanks :)

Create module, any suggestion ?

I choose drupal for week ago and try to create my own module. I'm very happy with drupal environment to create web based application. But there is some of part : pager, node and some of Drupal's API. Here is my own module "phonedir", the simple phone extention we have.

Complete my drupal modules (Source code and MySQL dump data) can be found at :
http://bestcli.blogspot.com/

How to store SQL query on table + pager which already in Drupal's API ?

-- heritriw --

WebForm Validation

Another WebForm question ...

If I have a full URL in the Confirmation Message/Redirect URL textbox, the Redirect Post values checkbox checked and some php code in the Additional Validation textarea. With this configuration, it appears the code i have placed in the Additional Validation textarea doesn't execute. Is this how it is supposed to work? The comment below the Redirect Post values says:

Forward the contents of the POST array to the redirect URL. Use this option for custom processing of the form information. No processing will be done by webform.

Pages

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