function node_gallery_setup_content_type in Node Gallery 6.3
1 call to node_gallery_setup_content_type()
File
- ./
node_gallery.install, line 217 - Install, update and uninstall functions for the node_gallery module.
Code
function node_gallery_setup_content_type($type) {
// add CCK types
$path = drupal_get_path('module', 'node_gallery') . "/cck_types";
$cck_file = $path . "/" . $type . ".cck";
$action = node_gallery_type_exists($type) ? $type : '<create>';
node_gallery_install_cck_type($action, $cck_file);
drupal_set_message(t('Node type %type created/modified.', array(
'%type' => $type,
)));
}