Example of implementing contextual links.

Parent topics

File

modules/examples/contextual_links_example/contextual_links_example.module, line 10
Shows how to use Backdrop's contextual links functionality.

Functions

Name Locationsort descending Description
contextual_links_example_menu modules/examples/contextual_links_example/contextual_links_example.module Implements hook_menu().
contextual_links_example_object_load modules/examples/contextual_links_example/contextual_links_example.module Menu loader callback for the object defined by this module.
contextual_links_example_block_info modules/examples/contextual_links_example/contextual_links_example.module Implements hook_block_info().
contextual_links_example_block_view modules/examples/contextual_links_example/contextual_links_example.module Implements hook_block_view().
contextual_links_overview_page modules/examples/contextual_links_example/contextual_links_example.module Menu callback; displays a listing of objects defined by this module.
contextual_links_example_theme modules/examples/contextual_links_example/contextual_links_example.module Implements hook_theme().
template_preprocess_contextual_links_example_object modules/examples/contextual_links_example/contextual_links_example.module Process variables for contextual-links-example-object.tpl.php.
contextual_links_example_object_page modules/examples/contextual_links_example/contextual_links_example.module Menu callback; displays an object defined by this module on its own page.
contextual_links_example_object_edit_form modules/examples/contextual_links_example/contextual_links_example.module Form callback; display the form for editing our module's content.
contextual_links_example_object_edit_form_submit modules/examples/contextual_links_example/contextual_links_example.module Submit handler for contextual_links_example_object_edit_form().
contextual_links_example_node_action_form modules/examples/contextual_links_example/contextual_links_example.module Form callback; display the form for performing an example action on a node.
contextual_links_example_node_action_form_submit modules/examples/contextual_links_example/contextual_links_example.module Submit handler for contextual_links_example_node_action_form().

Classes

Name Locationsort descending Description
ContextualLinksExampleTestCase modules/examples/contextual_links_example/contextual_links_example.test Functional tests for the contextual_links_example module.