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
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).

AttachmentSize
admin_message-hook_node_info.patch.txt3.52 KB

#1

fajerstarter - July 15, 2009 - 21:18
Status:needs review» fixed

Great patch.

Committed: http://drupal.org/cvs?commit=238038

#2

System Message - July 29, 2009 - 21:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.