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.
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.
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?
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?
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.
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.