... spend hours making the first slides more complicated?

This commit is contained in:
benjamin melançon 2020-03-18 01:40:49 -04:00
parent d714ae1a14
commit c3b9ab2177

View file

@ -7,6 +7,12 @@ outputs = ["Reveal"]
###### mid.camp/6337
<img alt="Agaric" src="images/o-midcamp.png" class="plain" />
{{% note %}}
mid-air camp
{{% /note %}}
---
###### Presented by
@ -15,7 +21,7 @@ outputs = ["Reveal"]
###### AKA
**mlncn** & **dinarcon**
**[mlncn](https://agaric.coop/mlncn)** & **[dinarcon](https://agaric.coop/dinarcon)**
---
@ -28,6 +34,16 @@ outputs = ["Reveal"]
---
<img alt="Agaric" src="images/o-midcamp.png" class="plain" width="47%" />
{{% note %}}
mid-air camp
{{% /note %}}
---
> When building a Drupal site, “there’s a module for that” can be the sweetest words you can hear.
@ -101,5 +117,67 @@ function frankenstein_form_node_frankenstein_form_alter(&$form, \Drupal\Core\For
![Regular node add form with Save button as reanimate](images/create-frankenstein-reanimate.png)
---
{{% note %}}
So you're all sitting* there thinking ... sure, that's easy if you know the exact words and symbols to *put* in that file. And you're absolutely right.
And we're going to tell you how you can figure out all of that.
The examples with the what will tell you a lot about the how.
But first, two secrets.
{{% /note %}}
---
### Now you know where to paste
(helping developers quit vim)
{{% note %}}
Knowing where to put this code unleashes the power of Stack Overflow.
You now know enough to be dangerous.
{{% /note %}}
---
### That simple form alter has hidden gotchas
* As written, it only applies to the create (node/add) form— not the edit form.
* There's a dozen variations
{{% note %}}
{{% /note %}}
---
{{% note %}}
Doing something with a form? You want hook_form_alter() or one of its
{{% /note %}}
---
{{% note %}}
{{% /note %}}
---
{{% note %}}
{{% /note %}}
---