I would like to restrict the operator of some exposed views filters to "contains" and "is one of" and remove the drop down menu selection in the filter and filterbox, but keep the ability to set the default operator in the admin/views interface.
Can anyone provide some quick tips on how to do this? Would the best place to start this be with the CSS or would it be necessary to tweak the module code?
I'm creating a module that makes a new node type. For the node form, I have several fieldsets that I use. Also, other modules may use hook_form_alter to make additions to the form, so I needed to use the #weight attribute to ensure that everything was displayed in the proper order. Ideally, I want to use the #weight attribute so that it would display each fieldset in order, and then it would each element within a fieldset in order. That way, if I add a new fieldset, or add a field within an existing field set, I can put it right where I want it to be.
Whilst working on something unrelated for my employer, I had a problem whilst developing a module for Drupal 6. Essentially, changes to the hook_menu() function don't take effect until the Menu System rebuilds it's data structures. There's no easy way to do this, so I've written a module that does this (and a few other things).
With Drupal 5, if you made a change to hook_menu(), you could clear the menu configuration by running the SQL command "truncate cache_menu;". This causes the Menu System to rebuild that information, making your changes take effect.
I'm updating my module fro 4.6.x to 5.x and trying to create a new node type using my custom module. I can create a node of this type and it all works properly, including the hook_validate.
However, I now want to attach a password field to this node type. I have added it to my form and it appears to work correctly until I try to change the value of the password inside hook_submit. Here's what I want to achieve:
I have installed the modules Voting Api + Vote Up and Down + Voting actions. So users vote for the blog posts. If the post has more than 3 votes, it has been promoted on the front page. Setting up this option in Voting action (3 votes and more, promote node to the frontpage). Does not work. In the module issues there was some comments, that this module for the 5 version of Drupal is a crap, not working.
Am i doing something wrong, does anybody has the working version of this plugin for 5 version ?