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.
Sarnia pages are not added to the contextual links for servers at admin/config/search/search_api. This is easily remedied by adding 'context' => MENU_CONTEXT_INLINE | MENU_CONTEXT_PAGE,
to the page information in sarnia_menu().
For comparison, see the search_api_solr module's implementation. It does the same thing to add its Files page to the contextual links. Also, see the hook_menu() documentation.
Remember to clear the menu cache after applying the patch.
Comment | File | Size | Author |
---|---|---|---|
sarnia-contextual-link.patch | 454 bytes | dcam | |
Comments
Comment #1
dcam CreditAttribution: dcam commentedComment #2
jmdeleon CreditAttribution: jmdeleon commentedPatch working for me. Nifty little one :)
Comment #4
dcam CreditAttribution: dcam commentedComment #5
jmdeleon CreditAttribution: jmdeleon commented