aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-23 14:03:10 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-23 14:03:10 -0300
commit1459c2923a6f1de73a20466b521fb6e1a627bc45 (patch)
treed3455b7b1af4d18f36973c3deda0ac588f98ceae
parent6e84d7f37d716773d4148bee19f505396e7ade43 (diff)
downloadmuamba-1459c2923a6f1de73a20466b521fb6e1a627bc45.tar.gz
muamba-1459c2923a6f1de73a20466b521fb6e1a627bc45.tar.bz2
Adding interface feature
-rw-r--r--features/muamba_interface/muamba_interface.features.inc15
-rw-r--r--features/muamba_interface/muamba_interface.info12
-rw-r--r--features/muamba_interface/muamba_interface.module7
-rw-r--r--features/muamba_interface/muamba_interface.strongarm.inc58
-rw-r--r--muamba.info3
-rw-r--r--muamba.misc.inc15
-rw-r--r--muamba.module18
7 files changed, 112 insertions, 16 deletions
diff --git a/features/muamba_interface/muamba_interface.features.inc b/features/muamba_interface/muamba_interface.features.inc
new file mode 100644
index 0000000..13d70e2
--- /dev/null
+++ b/features/muamba_interface/muamba_interface.features.inc
@@ -0,0 +1,15 @@
+<?php
+/**
+ * @file
+ * muamba_interface.features.inc
+ */
+
+/**
+ * Implements hook_ctools_plugin_api().
+ */
+function muamba_interface_ctools_plugin_api() {
+ list($module, $api) = func_get_args();
+ if ($module == "strongarm" && $api == "strongarm") {
+ return array("version" => "1");
+ }
+}
diff --git a/features/muamba_interface/muamba_interface.info b/features/muamba_interface/muamba_interface.info
new file mode 100644
index 0000000..1890406
--- /dev/null
+++ b/features/muamba_interface/muamba_interface.info
@@ -0,0 +1,12 @@
+core = "7.x"
+dependencies[] = "strongarm"
+description = "Muamba Interface Feature"
+features[ctools][] = "strongarm:strongarm:1"
+features[variable][] = "site_mail"
+features[variable][] = "site_name"
+features[variable][] = "theme_default"
+features[variable][] = "theme_settings"
+name = "Muamba Interface"
+package = "Features"
+project = "muamba_interface"
+version = "7.x-0.1"
diff --git a/features/muamba_interface/muamba_interface.module b/features/muamba_interface/muamba_interface.module
new file mode 100644
index 0000000..018ae5d
--- /dev/null
+++ b/features/muamba_interface/muamba_interface.module
@@ -0,0 +1,7 @@
+<?php
+/**
+ * @file
+ * Code for the Muamba Interface feature.
+ */
+
+include_once('muamba_interface.features.inc');
diff --git a/features/muamba_interface/muamba_interface.strongarm.inc b/features/muamba_interface/muamba_interface.strongarm.inc
new file mode 100644
index 0000000..c2531f8
--- /dev/null
+++ b/features/muamba_interface/muamba_interface.strongarm.inc
@@ -0,0 +1,58 @@
+<?php
+/**
+ * @file
+ * muamba_interface.strongarm.inc
+ */
+
+/**
+ * Implements hook_strongarm().
+ */
+function muamba_interface_strongarm() {
+ $export = array();
+
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'site_mail';
+ $strongarm->value = 'muamba@sarava.org';
+ $export['site_mail'] = $strongarm;
+
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'site_name';
+ $strongarm->value = 'Clube da Muamba';
+ $export['site_name'] = $strongarm;
+
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'theme_default';
+ $strongarm->value = 'muambeiro';
+ $export['theme_default'] = $strongarm;
+
+ $strongarm = new stdClass;
+ $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+ $strongarm->api_version = 1;
+ $strongarm->name = 'theme_settings';
+ $strongarm->value = array(
+ 'toggle_logo' => 1,
+ 'toggle_name' => 1,
+ 'toggle_slogan' => 1,
+ 'toggle_node_user_picture' => 1,
+ 'toggle_comment_user_picture' => 1,
+ 'toggle_comment_user_verification' => 1,
+ 'toggle_favicon' => 1,
+ 'toggle_main_menu' => 1,
+ 'toggle_secondary_menu' => 1,
+ 'default_logo' => 0,
+ 'logo_path' => '',
+ 'logo_upload' => '',
+ 'default_favicon' => 0,
+ 'favicon_path' => '',
+ 'favicon_upload' => '',
+ );
+ $export['theme_settings'] = $strongarm;
+
+ return $export;
+}
diff --git a/muamba.info b/muamba.info
index 78f0120..79a4fa1 100644
--- a/muamba.info
+++ b/muamba.info
@@ -4,3 +4,6 @@ core = 7.x
files[] = muamba.module
files[] = muamba.install
files[] = muamba.misc.inc
+dependencies[] = features
+dependencies[] = strongarm
+dependencies[] = muamba_interface
diff --git a/muamba.misc.inc b/muamba.misc.inc
new file mode 100644
index 0000000..fb1e042
--- /dev/null
+++ b/muamba.misc.inc
@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * @file
+ * Multiple-user Asset Manager and Borrowing Ambient.
+ */
+
+/**
+ * Request an item.
+ *
+ * @param $nid
+ * Requested item.
+ */
+function muamba_request($nid) {
+}
diff --git a/muamba.module b/muamba.module
index ada81d0..4c7c4b8 100644
--- a/muamba.module
+++ b/muamba.module
@@ -10,14 +10,8 @@
*/
function muamba_permission() {
return array(
- /*
- *'administer my module' => array(
- * 'title' => t('Administer my module'),
- * 'description' => t('Perform administration tasks for my module.'),
- *),
- */
- 'request item' => array(
- 'title' => t('Request an item.'),
+ 'administer muamba' => array(
+ 'title' => t('request item'),
'description' => t('Request an item to be borrowed or donated.'),
),
);
@@ -27,14 +21,6 @@ function muamba_permission() {
* Implements hook_menu()
*/
function muamba_menu() {
- /*
- *$items['blog'] = array(
- * 'title' => 'blogs',
- * 'page callback' => 'blog_page',
- * 'access arguments' => array('access content'),
- * 'type' => MENU_SUGGESTED_ITEM,
- *);
- */
$items['muamba/request'] = array(
'title' => 'Request item',
'page callback' => 'muamba_request',