Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The API Module enables linking to functions of other APIs such as Drupal core and PHP functions, defined under REFERENCE BRANCHES at /admin/config/development/api/php_branches, as described at Create your own API Site in Drupal 7.
One has to enter a URL for the API dump file. For example, for Drupal core the dump file is at https://api.drupal.org/api/drupal/full_list/7
Q: Is there a similar API dump file for the Examples project, and if so, what is the dump file URL ?
Comments
Comment #1
Mile23Hey, cool.
That really falls under the province of the API project. But it appears that if you substitute 'examples' for 'drupal' in the URL, you get some useful JSON back: https://api.drupal.org/api/examples/full_list/7
Swap out 8 for the D8 version: https://api.drupal.org/api/examples/full_list/8
API project: https://drupal.org/project/api
Is that what you're looking for?
Comment #2
webel CreditAttribution: webel commented@Mile23 Works like a charm, many thanks.
See running example, reference to form_example_tutorial7() turns into link form_example_tutorial_7() at one of my Object-Oriented Examples (OOE) tutorial module generated API pages: ">OOE 7.x-1.x » ooe.module function » ooe_form_demo_submit($form, &$form_state)