Problem/Motivation
DraggableViews includes one hook, hook_draggableviews_join_withargs(), though others are proposed and have been useful in previous versions (#3518723: Add hook draggableviews_sorted after view is saved).
Proposed resolution
Documenting all hooks in a standard file, draggableviews.api.php will make hooks more discoverable.
Issue fork draggableviews-3549815
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3549815-document-hooks
compare
- 2.1.x
changes, plain diff MR !49
Comments
Comment #3
calebtr commentedThe merge request pipeline indicates failures, but they do not look related to the code changes here.
Comment #4
istryker commentedI cannot find that hook in 2.1.x. I believe you are referencing D7
Comment #5
calebtr commentedIn the 2.1.x branch,
hook_draggableviews_join_withargs()is invoked fromDrupal\draggableviews\Plugin\views\join\WithArgs::buildJoin()on line 29:Comment #6
calebtr commentedComment #8
istryker commentedAwesome, done! I remove the example as Drupal.org specifies there shouldn't examples....though I added it to the comment.