/** * Assembles the $child_options variable for storage in the product table * * @param unknown_type $d * @return unknown */ function set_child_options($d) { if ($d["product_parent_id"] != 0) { $child_options = null; } else { $child_options = vmrequest::getYesOrNo('display_use_parent') . "," . vmGet($d, 'product_list', 'N') . "," . vmrequest::getYesOrNo('display_headers') . "," . vmrequest::getYesOrNo('product_list_child') . "," . vmrequest::getYesOrNo('product_list_type') . "," . vmrequest::getYesOrNo('display_desc') . "," . vmrequest::getVar('desc_width') . "," . vmrequest::getVar('attrib_width') . "," . vmrequest::getWord('child_class_sfx'); } return $child_options; }