Add more to resource blog

This commit is contained in:
benjamin melançon 2020-05-01 08:23:35 -04:00
parent 3453d966be
commit 08e6510674

View file

@ -106,9 +106,32 @@ drupal.org/project/grammar_parser
## Development Tips
* When Something Isn't Working, Clear Caches
* When Anything's Missing, Check Permissions
* Set Your Site to Show All Errors
Lines to add to settings.php to show all notices and errors:
```
error_reporting(-1);
$conf['error_level'] = 2;
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
```
These days i just look in the error log but it never hurts to have errors blared at your face.
The most important thing about this code is that i stole it.
I looked at how another module did it.
Implementing hooks is simply following patterns, it would be crazy not to copy.
## Best practices
* Make dependenices optional when possible.
* Provide granular suggestions in theme functions so people can override when they want to.