2

I try:

         $form['field_profile_club']['anchor'] = array(
           '#value' => '<a name="my_club"></a>',            
         );

But my field (field_profile_club) disappear.

Could somebody help?

1 Answer 1

2

Take a look at the form apis prefix and suffix attributes these will allow you to wrap html around your form element.

1
  • No problem, drupals form api is pretty cool once you know all the additional attributes that you can add.
    – digital
    Jul 15, 2011 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.