aboutsummaryrefslogtreecommitdiff
path: root/features/muamba_interface
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-10-10 21:49:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-10-10 21:49:18 -0300
commitc5415995757ac11ba695dc654e6bf027a077de0b (patch)
tree1660c0093d12b8539a6c053fcab99f190e296f15 /features/muamba_interface
parent99af5bfd118dc657f3c5c363a237c8cef49039fd (diff)
downloadmuamba-c5415995757ac11ba695dc654e6bf027a077de0b.tar.gz
muamba-c5415995757ac11ba695dc654e6bf027a077de0b.tar.bz2
Adding more stuff to features
Diffstat (limited to 'features/muamba_interface')
-rw-r--r--features/muamba_interface/muamba_interface.features.menu_custom.inc50
-rw-r--r--features/muamba_interface/muamba_interface.features.user_permission.inc42
-rw-r--r--features/muamba_interface/muamba_interface.info12
3 files changed, 104 insertions, 0 deletions
diff --git a/features/muamba_interface/muamba_interface.features.menu_custom.inc b/features/muamba_interface/muamba_interface.features.menu_custom.inc
new file mode 100644
index 0000000..af3f005
--- /dev/null
+++ b/features/muamba_interface/muamba_interface.features.menu_custom.inc
@@ -0,0 +1,50 @@
+<?php
+/**
+ * @file
+ * muamba_interface.features.menu_custom.inc
+ */
+
+/**
+ * Implements hook_menu_default_menu_custom().
+ */
+function muamba_interface_menu_default_menu_custom() {
+ $menus = array();
+
+ // Exported menu: main-menu
+ $menus['main-menu'] = array(
+ 'menu_name' => 'main-menu',
+ 'title' => 'Menu principal',
+ 'description' => 'The <em>Main</em> menu is used on many sites to show the major sections of the site, often in a top navigation bar.',
+ );
+ // Exported menu: management
+ $menus['management'] = array(
+ 'menu_name' => 'management',
+ 'title' => 'Management',
+ 'description' => 'O menu <em>Gerenciamento</em> contém links para as tarefas administrativas.',
+ );
+ // Exported menu: navigation
+ $menus['navigation'] = array(
+ 'menu_name' => 'navigation',
+ 'title' => 'Navegação',
+ 'description' => 'The <em>Navigation</em> menu contains links intended for site visitors. Links are added to the <em>Navigation</em> menu automatically by some modules.',
+ );
+ // Exported menu: user-menu
+ $menus['user-menu'] = array(
+ 'menu_name' => 'user-menu',
+ 'title' => 'User menu',
+ 'description' => 'O menu <em>Usuário<em> contém links relacionados à conta do usuário, e também o link para fechar a sessão.',
+ );
+ // Translatables
+ // Included for use with string extractors like potx.
+ t('Management');
+ t('Menu principal');
+ t('Navegação');
+ t('O menu <em>Gerenciamento</em> contém links para as tarefas administrativas.');
+ t('O menu <em>Usuário<em> contém links relacionados à conta do usuário, e também o link para fechar a sessão.');
+ t('The <em>Main</em> menu is used on many sites to show the major sections of the site, often in a top navigation bar.');
+ t('The <em>Navigation</em> menu contains links intended for site visitors. Links are added to the <em>Navigation</em> menu automatically by some modules.');
+ t('User menu');
+
+
+ return $menus;
+}
diff --git a/features/muamba_interface/muamba_interface.features.user_permission.inc b/features/muamba_interface/muamba_interface.features.user_permission.inc
new file mode 100644
index 0000000..236a0f2
--- /dev/null
+++ b/features/muamba_interface/muamba_interface.features.user_permission.inc
@@ -0,0 +1,42 @@
+<?php
+/**
+ * @file
+ * muamba_interface.features.user_permission.inc
+ */
+
+/**
+ * Implements hook_user_default_permissions().
+ */
+function muamba_interface_user_default_permissions() {
+ $permissions = array();
+
+ // Exported permission: access site-wide contact form
+ $permissions['access site-wide contact form'] = array(
+ 'name' => 'access site-wide contact form',
+ 'roles' => array(
+ 0 => 'administrator',
+ 1 => 'authenticated user',
+ ),
+ 'module' => 'contact',
+ );
+
+ // Exported permission: access user contact forms
+ $permissions['access user contact forms'] = array(
+ 'name' => 'access user contact forms',
+ 'roles' => array(
+ 0 => 'administrator',
+ ),
+ 'module' => 'contact',
+ );
+
+ // Exported permission: administer contact forms
+ $permissions['administer contact forms'] = array(
+ 'name' => 'administer contact forms',
+ 'roles' => array(
+ 0 => 'administrator',
+ ),
+ 'module' => 'contact',
+ );
+
+ return $permissions;
+}
diff --git a/features/muamba_interface/muamba_interface.info b/features/muamba_interface/muamba_interface.info
index 77e31cd..ef3431e 100644
--- a/features/muamba_interface/muamba_interface.info
+++ b/features/muamba_interface/muamba_interface.info
@@ -1,9 +1,21 @@
core = "7.x"
+dependencies[] = "block"
+dependencies[] = "contact"
+dependencies[] = "features"
+dependencies[] = "flag"
+dependencies[] = "menu"
dependencies[] = "strongarm"
dependencies[] = "views"
description = "Muamba Interface Feature"
features[ctools][] = "strongarm:strongarm:1"
features[ctools][] = "views:views_default:3.0"
+features[menu_custom][] = "main-menu"
+features[menu_custom][] = "management"
+features[menu_custom][] = "navigation"
+features[menu_custom][] = "user-menu"
+features[user_permission][] = "access site-wide contact form"
+features[user_permission][] = "access user contact forms"
+features[user_permission][] = "administer contact forms"
features[variable][] = "colorbox_caption_trim"
features[variable][] = "colorbox_caption_trim_length"
features[variable][] = "colorbox_compression_type"