diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-23 14:03:10 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-23 14:03:10 -0300 |
commit | 1459c2923a6f1de73a20466b521fb6e1a627bc45 (patch) | |
tree | d3455b7b1af4d18f36973c3deda0ac588f98ceae /features/muamba_interface | |
parent | 6e84d7f37d716773d4148bee19f505396e7ade43 (diff) | |
download | muamba-1459c2923a6f1de73a20466b521fb6e1a627bc45.tar.gz muamba-1459c2923a6f1de73a20466b521fb6e1a627bc45.tar.bz2 |
Adding interface feature
Diffstat (limited to 'features/muamba_interface')
4 files changed, 92 insertions, 0 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; +} |