¿How can i modify the imagefield output in node forms with CCK2?

Carlitus - November 10, 2008 - 13:05

I'm porting the Easy Image Insert to Drupal 6 but i'm having problems modifying the output of imagefield in the node form. I want to insert my code in the form but i don't know how with CCK 2.

I can modify the form using the form_alter but it seems there is a theme function that modifies the form after the form_alter and i don't know how to change this.

In the imagefield_widget.inc there is this function:

function theme_imagefield_widget(&$element) {
  return theme('form_element', $element, $element['#children']);
}

In the $element['#children'] there are some html ouput but i don't know how to chage it.

¿Can someone help me?

Im trying to figure this out

loze - November 29, 2008 - 08:44

Im trying to figure this out too.
have you had any luck?

Well, the problem was that i

Carlitus - December 1, 2008 - 11:05

Well, the problem was that i didn't used the hook_theme to register my theme_ function

Web design Neurotic

 
 

Drupal is a registered trademark of Dries Buytaert.