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

Views filter modification: How to hide drop down operators from views/filter and views filterblock

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?

Forms, Fieldsets, and Weights

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.

display data as content in a menu link from a query--help

ok guys now I want to display my flavors when you click the appropriate sub menu. Here is what I have...

This is the sub-menu item:

 $items[] = array(
	    'path' => 'milkshake/list/classic',
		'title' => t('Classic Flavors'),
		'callback' => 'milkshake_list_classic',
		'type' => MENU_LOCAL_TASK,
		'access' => user_access('list flavors'),
	  );

Here is my hook menu where I tell it to be content

Rebuilding Menu System Configuration, Clearing Caches etc.

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.

hook_submit problems

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:

Does "Voting actions" module for Drupal 5x work for someone ?

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 ?

Pages

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