When written as in ad_form -name item -extend ... , it returns invalid switch error, as described below.
While ad_form -extend -name item ..., works just fine.
Error in include template "/packages/custom-pkg/lib/add": Invalid switch -extend (expected one of -form, -method, -action, -mode, -html, -name, -select_query, -select_query_name, -new_data, -on_refresh, -edit_data, -validate, -on_submit, -after_submit, -confirm_template, -on_request, -new_request, -edit_request, -export, -cancel_url, -cancel_label, -has_submit, -has_edit, -actions, -edit_buttons, -display_buttons, -show_required_p, -on_validation_error, -fieldset)
The order of switches shouldn't matter in an ad_proc, should it?