From c5415995757ac11ba695dc654e6bf027a077de0b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 10 Oct 2011 21:49:18 -0300 Subject: Adding more stuff to features --- .../muamba_interface.features.menu_custom.inc | 50 ++++++++++++++++++++++ .../muamba_interface.features.user_permission.inc | 42 ++++++++++++++++++ features/muamba_interface/muamba_interface.info | 12 ++++++ 3 files changed, 104 insertions(+) create mode 100644 features/muamba_interface/muamba_interface.features.menu_custom.inc create mode 100644 features/muamba_interface/muamba_interface.features.user_permission.inc 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 @@ + 'main-menu', + 'title' => 'Menu principal', + 'description' => 'The Main 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 Gerenciamento contém links para as tarefas administrativas.', + ); + // Exported menu: navigation + $menus['navigation'] = array( + 'menu_name' => 'navigation', + 'title' => 'Navegação', + 'description' => 'The Navigation menu contains links intended for site visitors. Links are added to the Navigation menu automatically by some modules.', + ); + // Exported menu: user-menu + $menus['user-menu'] = array( + 'menu_name' => 'user-menu', + 'title' => 'User menu', + 'description' => 'O menu Usuário 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 Gerenciamento contém links para as tarefas administrativas.'); + t('O menu Usuário contém links relacionados à conta do usuário, e também o link para fechar a sessão.'); + t('The Main menu is used on many sites to show the major sections of the site, often in a top navigation bar.'); + t('The Navigation menu contains links intended for site visitors. Links are added to the Navigation 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 @@ + '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" -- cgit v1.2.3