User login

Drupal Development

Hide the "More information about formatting options" link

Sometimes, you want to have an HTML-enabled input format, but you really don't need the "More information about formatting options" link. Too much clutter (also, in bad browsers like IE, if you go to the more info on input filters page, and click the back button is your browser, do you lose what you entered in the form?)

Possibly localization and a custom language could remove the line, but that's not the natural or best approach. The most wonderfulest Drupal hook, form_alter, is the Agaric way.

How to apply a patch to a Drupal module

Following the Drupal documentation on applying patches.

The module localization client, originally developed for Drupal 6, needs a patch to the Drupal core module, locale (note that while locale is core it is also optional and disabled by default).

CCK checkbox widget

Not quite...

Content Taxonomy Options 5.x-1.x-dev Defines a option widget type for content_taxonomy for selects, radios/checkboxes

Here we go:

Option Widgets 5.x-1.6-1 Defines selection, check box and radio button widgets for text and numeric fields.

That's part of core CCK (a module that comes with content.module)

Question is... can it be translated?

Allow textfields to be required but with fewer than 10 words

Agaric would like to be able to require the node body and other textfields but set the minimum number of words at fewer than ten– two or five.

This code from modules/node/content_types.inc, specifically line 138 ('#options' ...), would have to be changed, so that the array startes with 0, 1, 2, 5, 10 or something like that.

Do not show group-adding subform when adding an action to an existing group

And finally, restricting adding that extra form, the group subform in the action node posting form, to only when the action is called without a group specified:

In restricting that subset of form_alter...

Could check $form here:

[#action] => /eng/node/add/action?gids[]=156

But it seems more precise to check $form over in this mess:

Steal this Graphic promo image link functionality

It should take off on / live in http://drupal.org/project/cck_extras

in #drupal i wrote:

@CCK_Extras - nice, eaton. Dan and I at agaric were just thinking about a textarea CCK field for 'steal this promo graphic' functionality. Now we have the base, and the home if anyone adds a 'steal this CCK image' display type -- image plus textarea with a link to it

Hiding the "More information about formatting options" text and link

This isn't working:

        unset($form['body_filter']['body']['format'][2]);
        unset($form['body_filter']['body']['format'][1]);

Resolution

Getting a subform to show up correctly

damn. action_group_node_form, the form that is an organic group, has none of its organic group-iness when pulled up through subform.

The trick-- and it is tricky -- is to specify your node type not just with the agaric_example_type_node_form but also in the arguments, 'type' must be set to agaric_example_type.

Hiding extra submit and preview buttons in subforms

The way recommended to remove buttons in the API function wsf_action_fix_subform($form_element, &$form_values) () does not work:

Disabled search within organic groups to work around bug

Disabled search within organic groups because there is a bug in views (according to Moshe, it's not in organic groups)

http://drupal.org/node/129838

Resolution

Syndicate content