I'm opening this one up for discussion as I am not sure whether or not this is a good idea.

For some hooks, the example code in the api.php file is a great starting point.

For others, it's just a demonstration of what can be done in that hook and in most cases if you got that chucked into your module code, you'd always be deleting it immediately (eg, http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...).

Comments

joachim’s picture

Status: Active » Fixed

I went ahead and implemented this, as too many hooks on D7 now have totally empty bodies!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.