Posted by Turies on November 9, 2011 at 10:11am
1 follower
| Project: | Advertisement |
| Version: | 6.x-2.x-dev |
| Component: | ad module |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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();| Attachment | Size |
|---|---|
| ad_form_preselect.patch | 474 bytes |