/[drupal]/contributions/modules/procon/procon.install
ViewVC logotype

Diff of /contributions/modules/procon/procon.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.1, Thu Jul 26 20:38:53 2007 UTC revision 1.1.2.2, Sun Aug 12 14:34:54 2007 UTC
# Line 1  Line 1 
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().
# Line 31  function procon_install() { Line 31  function procon_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)));

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2