Patch: use hook_node_info() instead of install script
yhahn - March 15, 2009 - 01:31
| Project: | Admin message |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
This patch switches admin_message from using an install script to create the admin_message node type to using the Drupal core node hooks. Given that the module will not work without the content type existing it should provide it in code (and thus prevent the user from deleting it by accident).
| Attachment | Size |
|---|---|
| admin_message-hook_node_info.patch.txt | 3.52 KB |

#1
Great patch.
Committed: http://drupal.org/cvs?commit=238038
#2
Automatically closed -- issue fixed for 2 weeks with no activity.