Add more to resource blog
This commit is contained in:
parent
3453d966be
commit
08e6510674
1 changed files with 23 additions and 0 deletions
|
@ -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.
|
The most important thing about this code is that i stole it.
|
||||||
|
|
||||||
I looked at how another module did it.
|
I looked at how another module did it.
|
||||||
|
|
||||||
Implementing hooks is simply following patterns, it would be crazy not to copy.
|
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue