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();
CommentFileSizeAuthor
ad_form_preselect.patch474 bytesTuries

Comments

lrwebks’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is EOL and no longer supported. Closing this as outdated for that reason. Thanks for your contribution!