I need to create specific ad type without selecting type switch and don't know how to do it so i create little patch. Is there any other way to do it?
function ad_form(&$node, &$form_state) {
/*
* Add preselect ad type
*/
$adtype = arg(3);
if (!empty($adtype)) {
$adtype = arg(3);
$node->adtype=$adtype;
$adtypes = 1;
}
$form = array();| Comment | File | Size | Author |
|---|---|---|---|
| ad_form_preselect.patch | 474 bytes | Turies |
Comments
Comment #1
lrwebks commentedDrupal 6 is EOL and no longer supported. Closing this as outdated for that reason. Thanks for your contribution!