This example demonstrates how to implement contextual links.
Parent topics
File
- modules/
examples/ contextual_links_example/ contextual_links_example.module, line 7 - Hooks implementations for the Contextual Links Example module.
Functions
Name | Location | Description |
---|---|---|
template_preprocess_contextual_links_example_object |
modules/ |
Process variables for contextual-links-example-object.tpl.php. |
contextual_links_overview_page |
modules/ |
Menu callback; displays a listing of objects defined by this module. |
contextual_links_example_theme |
modules/ |
Implements hook_theme(). |
contextual_links_example_object_page |
modules/ |
Menu callback; displays an object defined by this module on its own page. |
contextual_links_example_object_load |
modules/ |
Menu loader callback for the object defined by this module. |
contextual_links_example_object_edit_form_submit |
modules/ |
Submit handler for contextual_links_example_object_edit_form(). |
contextual_links_example_object_edit_form |
modules/ |
Form callback; display the form for editing our module's content. |
contextual_links_example_node_action_form_submit |
modules/ |
Submit handler for contextual_links_example_node_action_form(). |
contextual_links_example_node_action_form |
modules/ |
Form callback; display the form for performing an example action on a node. |
contextual_links_example_menu |
modules/ |
Implements hook_menu(). |
contextual_links_example_block_view |
modules/ |
Implements hook_block_view(). |
contextual_links_example_block_info |
modules/ |
Implements hook_block_info(). |
Classes
Name | Location | Description |
---|---|---|
ContextualLinksExampleTestCase |
modules/ |
Functional tests for the contextual_links_example module. |