I have added a checkbox list field on the register form and I want to change the template for that field.

I have used field--field-checkbox-list.tpl.php and MYTHEME_field__field_checkbox-list() function, but with no luck on user_register_form.

  • Are those full names of file and function you used? – Mołot May 24 '13 at 13:55
  • I have edited the question and added the field names also. Sorry for the confusion. – Sorin S. May 24 '13 at 13:57

Two possibilities. You could alter the form element with hook_field_widget_form_alter, or you could override theme_checkbox.

More info: http://drupal.org/node/173880

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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