]> gitweb.fluxo.info Git - drupal/muamba.git/commitdiff
Initial import
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2011 15:37:58 +0000 (12:37 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2011 15:37:58 +0000 (12:37 -0300)
muamba.info [new file with mode: 0644]
muamba.install [new file with mode: 0644]
muamba.make [new file with mode: 0644]
muamba.module [new file with mode: 0644]

diff --git a/muamba.info b/muamba.info
new file mode 100644 (file)
index 0000000..bcfbcf4
--- /dev/null
@@ -0,0 +1,5 @@
+name = Muamba
+description = Multi-user Asset Manager and Borrowing Ambient
+core = 7.x
+files[] = muamba.module
+files[] = muamba.install
diff --git a/muamba.install b/muamba.install
new file mode 100644 (file)
index 0000000..4e38f49
--- /dev/null
@@ -0,0 +1,45 @@
+<?php
+
+/**
+ * @file
+ * Muamba installation functions.
+ */
+
+function muamba_install() {
+}
+
+function muamba_schema() {
+  $schema['muamba'] = array(
+    'description' => 'The base table for muamba assets.',
+    'fields'      => array(
+      'quantity'  => array(
+        'description' => 'Asset quantity', 
+        'type'        => 'int',
+        'unsigned'    => TRUE,
+        'not null'    => TRUE,
+        'default'     => 1,
+      ),
+      'nid'       => array(
+        'description' => t('The {node}.nid of the borrowed item.'),
+        'type'        => 'int',
+        'unsigned'    => TRUE,
+        'not null'    => TRUE,
+        'default'     => 0,
+      ),
+      'uid'       => array(
+        'description' => t('The {user}.uid requesting an item.'),
+        'type'        => 'int',
+        'unsigned'    => TRUE,
+        'not null'    => TRUE,
+        'default'     => 0,
+      ),
+      'primary key' => array('uid', 'nid'),
+      'indexes'     => array(
+        'nid' => array('nid'),
+        'uid' => array('uid'),
+      ),
+    ),
+  );
+
+  return $schema;
+}
diff --git a/muamba.make b/muamba.make
new file mode 100644 (file)
index 0000000..08a0515
--- /dev/null
@@ -0,0 +1,28 @@
+;
+; Makefile for Clube da Muamba
+;
+
+; core
+core       = 7.x
+;projects[] = drupal
+
+; api
+api = 2
+
+; essential
+projects[] = views
+projects[] = ctools
+projects[] = features
+projects[] = strongarm
+projects[] = panels
+projects[] = og
+projects[] = entity
+projects[] = libraries
+;projects[] = flag
+
+; administration
+projects[] = l10n_update
+
+; themes
+projects[] = adaptivetheme
+projects[sky][version] = 1.6
diff --git a/muamba.module b/muamba.module
new file mode 100644 (file)
index 0000000..08daf72
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+
+/**
+ * @file
+ * Multiple-user Asset Manager and Borrowing Ambient.
+ */