Created
March 15, 2012 11:01
-
-
Save vincenzo/2043645 to your computer and use it in GitHub Desktop.
Programmatic CCK Content Type Updated - Step 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implementation of hook_install | |
*/ | |
function example_cck_content_install() { | |
_example_cck_content_save_cck_node(); | |
} | |
/** | |
* Implementation of hook_uninstall | |
*/ | |
function example_cck_content_uninstall() { | |
// the type_name must be the type_name | |
// as specified in the .def.inc file | |
node_type_delete('example_cck_content'); | |
menu_rebuild(); | |
} | |
// EXAMPLE hook_update_N | |
// every hook_update_N will look the same | |
// and you will need to write a new one | |
// every time you update the .def.inc file | |
//function example_cck_content_update_1() { | |
// _example_cck_content_save_cck_node(); | |
// return array(); | |
//} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment