hook form alter

Events happening in the community are now at Drupal community events on www.drupal.org.

How to use AHAH inside a form_alter hook?

Posted by altrugon on October 20, 2010 at 5:26pm

I'm trying to add AHAH functionality inside a hook_form_alter() to be able to add an icon next to the block titles.

Here is how all this procedure works:

Read more

Användarinloggning och hook_form_alter

Posted by _dala_ on November 2, 2009 at 2:31pm

Jag har en funktion som ska köras vid inloggning och använder därför hook_form_FORM_ID_alter(), alltså {modul}_form_user_login_alter. Det fungerar som jag tänkt. Problemet är att den inte verkar exekvera när man loggar genom att klicka på comment modulens länk till formuläret (logga in eller registrera dig för att kunna kommentera).

Det vanliga formuläret ligger på /user, och via comment /user/login men formid på dessa formulär är detsamma.

Är det någon som har en aning om varför det blir så här?

hook_form_FORM_ID_alter():

Read more

My New Friend: hook_form_alter

Posted by Summitt Dweller on February 25, 2009 at 3:10pm

Michael put me up to this... and rightfully so. He said that hook_form_alter would be my friend and it is. But it's not my best friend, yet.

Long story short... I have an assistant who's ready to bless my new site with buckets of content. Specifically, user profiles. Problem: I didn't feel comfortable turning her loose on the data using the default user profile form because it carried a lot of stuff that could only make trouble for us (like menu settings, body input format selector, revision settings, etc.).

Read more
Subscribe with RSS Syndicate content

AltStyle によって変換されたページ (->オリジナル) /