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

Contents of /contributions/modules/save_as_draft/save_as_draft.install

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


Revision 1.3 - (show annotations) (download) (as text)
Thu May 21 13:57:41 2009 UTC (6 months, 1 week ago) by realityloop
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA1, HEAD
Changes since 1.2: +0 -0 lines
File MIME type: text/x-php
Added:
Disable Save as Draft checkbox on node creation
Save revision automatically when Save as Draft selected

Fixed:
notice: Undefined property: stdClass::$nid
notice: Undefined property: stdClass::$save_as_draft
1 <?php
2 // $Id: save_as_draft.install,v 1.1 2008/02/22 04:20:17 peligrorice Exp $
3
4 /**
5 * @file
6 * Install database tables for save_as_draft module.
7 */
8
9 /**
10 * Implementation of hook_schema().
11 */
12 function save_as_draft_schema() {
13 $schema['save_as_draft'] = array(
14 'description' => t('TODO'),
15 'fields' => array(
16 'nid' => array(
17 'description' => t('TODO'),
18 'type' => 'int',
19 'unsigned' => 1,
20 'not null' => TRUE,
21 ),
22 'save_as_draft' => array(
23 'description' => t('TODO'),
24 'type' => 'int',
25 'not null' => TRUE,
26 'default' => 0,
27 ),
28 ),
29 );
30
31 return $schema;
32 }
33
34 /**
35 * Implementation of hook_install().
36 */
37 function save_as_draft_install() {
38 // Create tables.
39 drupal_install_schema('save_as_draft');
40 }
41
42 /**
43 * Implementation of hook_uninstall().
44 */
45 function save_as_draft_uninstall() {
46 // Remove tables.
47 drupal_uninstall_schema('save_as_draft');
48 }

  ViewVC Help
Powered by ViewVC 1.1.2