Skip to content

Add alters so words and dictionaries can be replaced by other modules. - #169

Open
yorkshire-pudding wants to merge 3 commits into
backdrop-contrib:1.x-1.xfrom
yorkshire-pudding:issue-168-alternative-dictionary
Open

yorkshire-pudding wants to merge 3 commits into
backdrop-contrib:1.x-1.xfrom
yorkshire-pudding:issue-168-alternative-dictionary

Conversation

@yorkshire-pudding

Copy link
Copy Markdown
Contributor

Fixes #168

@jenlampton

Copy link
Copy Markdown
Member

These changes look great @yorkshire-pudding but can you please also add sample implementations to a new devel.api.php file? I don't like to add APIs without any documentation.

@yorkshire-pudding

Copy link
Copy Markdown
Contributor Author

These changes look great @yorkshire-pudding but can you please also add sample implementations to a new devel.api.php file? I don't like to add APIs without any documentation.

@jenlampton I think it would be devel_generate.api.php rather than devel.api.php as the hooks alter devel_generate.

I've added an API file and tried to keep it simple but for what I think are likely to be the main use cases, it makes sense to generate the dictionary in a helper function and call that from each hook function.

Let me know if this is acceptable. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow other modules to provide alternative filler text for Devel Generate

2 participants