Skip to content

Instantly share code, notes, and snippets.

@vincenzo
Created March 15, 2012 11:01
Show Gist options
  • Save vincenzo/2043645 to your computer and use it in GitHub Desktop.
Save vincenzo/2043645 to your computer and use it in GitHub Desktop.
Programmatic CCK Content Type Updated - Step 5
<?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