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

Contents of /contributions/modules/duration/duration.install

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Apr 28 19:45:06 2008 UTC (18 months, 4 weeks ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-6--0-9, DRUPAL-6--1-0-RC1, DRUPAL-6--1-0-RC2, DRUPAL-6--1-0, HEAD
File MIME type: text/x-php
A first stab at a CCK field for durations.
Doesn't really work with a current CCK... nearly worked with an older one.
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * A CCK field for entering time durations.
7 *
8 * Copyright 2008 by Jakob Petsovits <jpetso@gmx.at>
9 * Distributed under the GNU General Public Licence version 2 or higher,
10 * as published by the FSF on http://www.gnu.org/copyleft/gpl.html
11 */
12
13 /**
14 * Implementation of hook_install().
15 */
16 function duration_install() {
17 content_notify('install', 'duration');
18 }
19
20 /**
21 * Implementation of hook_uninstall().
22 */
23 function duration_uninstall() {
24 content_notify('uninstall', 'duration');
25 }
26
27 /**
28 * Implementation of hook_enable().
29 *
30 * Notify content module when this module is enabled.
31 */
32 function duration_enable() {
33 content_notify('enable', 'duration');
34 }
35
36 /**
37 * Implementation of hook_disable().
38 *
39 * Notify content module when this module is disabled.
40 */
41 function duration_disable() {
42 content_notify('disable', 'duration');
43 }

  ViewVC Help
Powered by ViewVC 1.1.2