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.
listing. Here,
// we will reuse the menu items and contextual links that were defined for
// our example object above, and display them in a listing in
// contextual_links_overview_page().
This makes it really hard to follow. I can't actually use this as an example, since it's referring to pieces of other examples. It should be a standalone component that can be studied apart from the node and block examples.
Comments
Comment #1
Mile23Actually it's referring to objects generated by contextual_links_example_object_load(), which generates stub objects simply so you can see how the contextual menu attaches to them.
I agree it's a bit unclear to the uninitiated.
Submit a patch if you have a better way to word it, or a better example scenario.
Thanks.
Comment #2
Mile23Comment #3
jungleNo activity for over 7 years. I am closing this. Please feel free to reopen if necessary.
Thanks!