function ad_form_add_adtype_elements in Advertisement 6.3
Same name and namespace in other branches
- 6.2 ad.module \ad_form_add_adtype_elements()
- 7 ad.module \ad_form_add_adtype_elements()
Loads Ad type elements into form.
2 calls to ad_form_add_adtype_elements()
- ad_form in ./
ad.module - Implementation of hook_form().
- ad_form_ahah in ./
ad.module - Ad type switch AHAH menu handler.
File
- ./
ad.module, line 755
Code
function ad_form_add_adtype_elements(&$form, $adtype, $node = NULL) {
unset($form['adtype_elements']);
$form['adtype_elements'] = module_invoke('ad_' . $adtype, 'adapi', 'form', $node);
$form['adtype'] = array(
'#type' => 'hidden',
'#value' => $adtype,
);
$form['adtype_elements']['#weight'] = 3.1;
}