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.

  1. drupal_array_merge_deep()
  2. drupal_register_shutdown_function()
  3. drupal_form_submit()
  4. drupal_get_form()
  5. module_invoke()
  6. module_invoke_all()
  7. DrupalWebTestCase::setUp()

Comments

pillarsdotnet’s picture

Title: Document the de-facto standard of using "@param ..." to specify a variable number of function arguments. » Document the de-facto standard of using "@param ..." to indicate a variable number of function arguments.

Better title.

jhodgdon’s picture

Issue tags: +Coding standards

Are there also other functions that do it a different way? This probably needs a bit of discussion.

jhodgdon’s picture

Status: Active » Fixed

Great, thanks for the thorough research! I've added a section to
http://drupal.org/node/1354#functions
to describe this.

Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Fixed typo.