Documentation

Info hooks

Info hooks of the format hook_commerce_*_info() are used to define a variety of non-entity / field data structures and even some default entity bundles in Drupal Commerce. In most cases, the structures defined in these hooks are alterable by other modules.
Currently every info hook is expected to return an associative array keyed by a unique ID after all the info hooks have been modified by this issue: an issue.

The hooks are categorized by module with information on all the properties acceptable to a data structure (including the unique key used as the array key in the hook’s return value) and notes regarding alteration and “magic” properties (i.e. properties that receive default values based on other properties in the structure). In lists of properties, the unique key will be placed first and italicized. This key serves as the key in the array returned by the info hooks and is also present as a property on the object itself.