whaahahahahhahahah

This commit is contained in:
benjamin melançon 2020-03-19 11:37:33 -04:00
parent 524aa294e4
commit 0036c5035c

View file

@ -239,7 +239,7 @@ With our dirty secrets acknowledged, on with the show.
- Act Two: **How Not To Have to Make a Whole Module** - Act Two: **How Not To Have to Make a Whole Module**
- Act Three: **How To Make a Module** - Act Three: **How To Make a Module**
- Act Four: **How To Figure Out How To Make a Module** - Act Four: **How To Figure Out How To Make a Module**
- Encore
{{% note %}} {{% note %}}
With our dirty secrets acknowledged, on with the show. With our dirty secrets acknowledged, on with the show.
@ -248,6 +248,7 @@ With our dirty secrets acknowledged, on with the show.
--- ---
How to make a module
## We'll cover ## We'll cover
@ -275,6 +276,7 @@ Doing something with a form? You want hook_form_alter() or one of its variants.
--- ---
How to figure out how to make a module
## Learning to learn ## Learning to learn
@ -304,7 +306,6 @@ You can do anything with a module! Why wouldn't you make one every day?
{{% /note %}} {{% /note %}}
--- ---
@ -315,13 +316,30 @@ You can do anything with a module! Why wouldn't you make one every day?
{{% note %}} {{% note %}}
find a contrib module that does it find a contrib module that does it
Should it be in a template Should it be in a template? If it's very specific to the display on your site, you should probably do it in the theme layer. But if it's at all data and you might ever want to switch themes, or want to allow site builders or site managers to disable or change settings, get that in a module.
{{% /note %}} {{% /note %}}
--- ---
##### Thre's a module that *almost* does exactly what you want ![Modules link](images/download-extend-modules-menu.png)
{{% note %}}
{{% /note %}}
---
![Modules search](images/drupal-download-extend-modules-search.png)
{{% note %}}
I definitely recommend changing core compatibility to something reasonable, 8.x
And Status to "All projects", not just Full, non-sandbox projects, if you're ready to write a module. A sandbox may be a great start.
Then put in your key words and search.
{{% /note %}}
---
##### There's a module that *almost* does exactly what you want
* Contribute a patch! * Contribute a patch!
@ -330,9 +348,23 @@ Should it be in a template
Even if your patch is not accepted nor is there any way given to build on the module, you can fork the module— maintain your own copy. Even if your patch is not accepted nor is there any way given to build on the module, you can fork the module— maintain your own copy.
{{% /note %}} {{% /note %}}
--- ---
[![David fixing a reported comment notify issue all himself.](images/david-fixing-comment-notify-issue-alone.png)](https://www.drupal.org/project/comment_notify/issues/2976478)
{{% note %}}
This strategy is not without risks.
David was made a maintainer of Comment Notify, and now routinely fixes issues there all himself.
Still, that's generally better for *everyone* than to make your own module with duplicate functionality.
{{% /note %}}
---
### When to make a module ### When to make a module