| 1 |
<?php |
<?php |
| 2 |
// $Id: procon.install,v 1.1 2007/07/26 18:00:58 fajerstarter Exp $ |
// $Id: procon.install,v 1.1.2.1 2007/07/26 20:38:53 fajerstarter Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_install(). |
* Implementation of hook_install(). |
| 31 |
); |
); |
| 32 |
$type = (object) _node_type_set_defaults($type); |
$type = (object) _node_type_set_defaults($type); |
| 33 |
$status = node_type_save($type); |
$status = node_type_save($type); |
| 34 |
|
// Don't promote to frontpage |
| 35 |
|
variable_set('node_options_'. $type->type, array('status')); |
| 36 |
|
|
| 37 |
if ($status == SAVED_UPDATED) { |
if ($status == SAVED_UPDATED) { |
| 38 |
drupal_set_message(t('The content type %name has been updated.', array('%name' => $type->name))); |
drupal_set_message(t('The content type %name has been updated.', array('%name' => $type->name))); |