I was saying that. there was a method with cck in drupal 6 to attach a cck fi...

Contribution Date
Technology
Contribution Project
Contribution Details

I was saying that. there was a method with cck in drupal 6 to attach a cck field in our custom form. like.

$field = content_fields('field_name'); // field_name is cck field (text_field,text_Area,image_field anything.) $form['#field_info'][$name] = $field; $form += content_field_form($form, $form_state, $field);

So how can i do the same with drupal 7 ?? I had a form and i want to use the field that i created for a node type.

Contribution Author
Files count
0
Patches count
0