There are seven functions in Drupal core that use @param ... to indicate a variable number of arguments. This pattern should be documented on the relevant coding standards page.
There are seven functions in Drupal core that use @param ... to indicate a variable number of arguments. This pattern should be documented on the relevant coding standards page.
Comments
Comment #1
pillarsdotnet commentedBetter title.
Comment #2
jhodgdonAre there also other functions that do it a different way? This probably needs a bit of discussion.
Comment #3
pillarsdotnet commented@jhodghdon:
Scanning for all functions that call
func_get_args(), I find:@param ...construct:drupal_array_merge_deep()drupal_register_shutdown_function()DatabaseSchema::prefixNonTable()drupal_form_submit()drupal_get_form()module_invoke()module_invoke_all()@paramsection is missing or incomplete:file_download()_field_ui_view_mode_menu_access()file_ajax_upload()image_style_deliver()@param mixed, which is now deprecated:Archive_Tar::setAttribute()FieldTestCase::setUp()FieldAttachTestCase::setUp()FieldUITestCase::setUp()FileFieldTestCase::setUp()AJAXTestCase::setUp()MenuBreadcrumbTestCase::setUp()MenuTrailTestCase::setUp()MenuWebTestCase::setUp()@paramlines:DatabaseConnection_sqlite::sqlFunctionConcat()DatabaseConnection_sqlite::sqlFunctionGreatest()field_test_field_create_field()field_test_field_delete()field_test_field_insert()field_test_field_update()Comment #4
jhodgdonGreat, thanks for the thorough research! I've added a section to
http://drupal.org/node/1354#functions
to describe this.
Thanks!
Comment #5.0
(not verified) commentedFixed typo.