aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-10-06 23:21:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-10-06 23:21:56 -0300
commit6a32a7159dd05c9e9e3e62957d0e03aec3b4cd24 (patch)
tree0d561e519bd1666bf3b441e92dd685bfc67f43a8
parentfe5d67700ceb54bdc951dbd1f5f98e9dcae89855 (diff)
downloadmuamba-6a32a7159dd05c9e9e3e62957d0e03aec3b4cd24.tar.gz
muamba-6a32a7159dd05c9e9e3e62957d0e03aec3b4cd24.tar.bz2
Misc changes
-rw-r--r--CREDITS.txt1
-rw-r--r--features/muamba_system/muamba_system.features.field.inc25
-rw-r--r--images/accept.orig.pngbin0 -> 87495 bytes
-rw-r--r--images/accept.pngbin0 -> 14612 bytes
l---------images/reject.png1
-rw-r--r--muamba-widget.tpl.php5
-rw-r--r--muamba.module2
7 files changed, 20 insertions, 14 deletions
diff --git a/CREDITS.txt b/CREDITS.txt
index 85e71bd..56f86ce 100644
--- a/CREDITS.txt
+++ b/CREDITS.txt
@@ -19,3 +19,4 @@ http://www.openclipart.org/detail/107473/folder-inbox-by-anonymous
http://www.openclipart.org/detail/160369/eshop-by-lbear
http://www.openclipart.org/detail/110/red-square-error-warning-icon-by-molumen
http://www.openclipart.org/detail/57745/denied-by-chovynz
+http://www.openclipart.org/detail/10940/red-+-green-ok-not-ok-icons-by-tzeeniewheenie-10940
diff --git a/features/muamba_system/muamba_system.features.field.inc b/features/muamba_system/muamba_system.features.field.inc
index 39a2cb2..98dffb8 100644
--- a/features/muamba_system/muamba_system.features.field.inc
+++ b/features/muamba_system/muamba_system.features.field.inc
@@ -234,7 +234,7 @@ function muamba_system_field_default_fields() {
'description' => 'Logotipo do clube',
'display' => array(
'default' => array(
- 'label' => 'above',
+ 'label' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
@@ -474,7 +474,7 @@ function muamba_system_field_default_fields() {
'description' => '',
'display' => array(
'default' => array(
- 'label' => 'above',
+ 'label' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
@@ -512,7 +512,7 @@ function muamba_system_field_default_fields() {
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
- 'weight' => '2',
+ 'weight' => '1',
),
),
);
@@ -566,8 +566,8 @@ function muamba_system_field_default_fields() {
),
'entity_type' => 'node',
'field_name' => 'group_audience',
- 'label' => 'Groups audience',
- 'required' => FALSE,
+ 'label' => 'Grupos',
+ 'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
@@ -584,12 +584,13 @@ function muamba_system_field_default_fields() {
),
),
'widget' => array(
+ 'active' => 1,
'module' => 'og',
'settings' => array(
'opt_group' => 'auto',
),
'type' => 'group_audience',
- 'weight' => '4',
+ 'weight' => '3',
),
'widget_type' => 'group_audience',
),
@@ -626,7 +627,7 @@ function muamba_system_field_default_fields() {
'bundle' => 'muamba',
'default_value' => array(
0 => array(
- 'value' => 0,
+ 'value' => '0',
),
),
'deleted' => '0',
@@ -648,8 +649,8 @@ function muamba_system_field_default_fields() {
),
'entity_type' => 'node',
'field_name' => 'group_content_access',
- 'label' => 'Group content visibility',
- 'required' => TRUE,
+ 'label' => 'Visibilidade',
+ 'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
@@ -664,10 +665,11 @@ function muamba_system_field_default_fields() {
),
),
'widget' => array(
+ 'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
- 'weight' => '3',
+ 'weight' => '2',
),
'widget_type' => 'options_select',
),
@@ -811,14 +813,15 @@ function muamba_system_field_default_fields() {
t('Comment');
t('Descrição');
t('Foto');
- t('Group content visibility');
t('Group type');
t('Group visibility');
t('Groups audience');
+ t('Grupos');
t('Logo');
t('Logotipo do clube');
t('Request message');
t('This is the text a user may send to the group administrators.');
+ t('Visibilidade');
return $fields;
}
diff --git a/images/accept.orig.png b/images/accept.orig.png
new file mode 100644
index 0000000..d5a019c
--- /dev/null
+++ b/images/accept.orig.png
Binary files differ
diff --git a/images/accept.png b/images/accept.png
new file mode 100644
index 0000000..c93a41f
--- /dev/null
+++ b/images/accept.png
Binary files differ
diff --git a/images/reject.png b/images/reject.png
new file mode 120000
index 0000000..8a6b758
--- /dev/null
+++ b/images/reject.png
@@ -0,0 +1 @@
+cancel.png \ No newline at end of file
diff --git a/muamba-widget.tpl.php b/muamba-widget.tpl.php
index 6923de8..062558b 100644
--- a/muamba-widget.tpl.php
+++ b/muamba-widget.tpl.php
@@ -13,7 +13,8 @@ global $user;
drupal_add_js($path .'/muamba.js');
drupal_add_css($path .'/muamba.css');
-$output = '<div class="muamba-widget">';
+$output = '<div class="muamba-widget">';
+$output = '<h3>'. t('Options') .'</h3>';
if (empty($transaction)) {
$output .= theme('muamba_widget_icon', array('status' => MUAMBA_REQUESTED, 'id' => $nid));
@@ -24,7 +25,7 @@ elseif ($transaction['uid'] == $user->uid) {
}
}
elseif ($transaction['owner'] == $user->uid) {
- foreach (muamba_actions_available('received', $transcation['status']) as $action) {
+ foreach (muamba_actions_available('received', $transaction['status']) as $action) {
$output .= theme('muamba_widget_icon', array('status' => $action, 'id' => $transaction['mid']));
}
}
diff --git a/muamba.module b/muamba.module
index b530bb9..5552d8b 100644
--- a/muamba.module
+++ b/muamba.module
@@ -112,7 +112,7 @@ function muamba_node_view($node, $view_mode, $langcode) {
global $user;
// Check if widget can be shown
- if ($node->uid == $user->uid || $node->type != MUAMBA_NODE_TYPE || !muamba_has_request_access($node)) {
+ if ($node->type != MUAMBA_NODE_TYPE || !muamba_has_request_access($node)) {
return;
}