]> gitweb.fluxo.info Git - drupal/muamba.git/commitdiff
Adding interface feature
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2011 17:03:10 +0000 (14:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2011 17:03:10 +0000 (14:03 -0300)
features/muamba_interface/muamba_interface.features.inc [new file with mode: 0644]
features/muamba_interface/muamba_interface.info [new file with mode: 0644]
features/muamba_interface/muamba_interface.module [new file with mode: 0644]
features/muamba_interface/muamba_interface.strongarm.inc [new file with mode: 0644]
muamba.info
muamba.misc.inc [new file with mode: 0644]
muamba.module

diff --git a/features/muamba_interface/muamba_interface.features.inc b/features/muamba_interface/muamba_interface.features.inc
new file mode 100644 (file)
index 0000000..13d70e2
--- /dev/null
@@ -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 (file)
index 0000000..1890406
--- /dev/null
@@ -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 (file)
index 0000000..018ae5d
--- /dev/null
@@ -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 (file)
index 0000000..c2531f8
--- /dev/null
@@ -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;
+}
index 78f0120d4f7faa01f377682fade6b36e482a7be0..79a4fa1f6f583388dd024e4fbd09b868abccd6a7 100644 (file)
@@ -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 (file)
index 0000000..fb1e042
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * @file
+ * Multiple-user Asset Manager and Borrowing Ambient.
+ */
+
+/**
+ * Request an item.
+ *
+ * @param $nid
+ *   Requested item.
+ */
+function muamba_request($nid) {
+}
index ada81d0d579781cb2984bc85c252e4f2e2456b62..4c7c4b888959d879f8ec804b45994199edb02b96 100644 (file)
  */
 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',