Mercurial > defr > drupal > og_statistics
comparison og_statistics.module @ 3:13824d66b299 tip
Application du patch sur la 1.0-rc2
author | Franck Deroche <franck@defr.org> |
---|---|
date | Tue, 24 Nov 2009 14:30:14 +0100 |
parents | 48f07e7acaca 0aae3e2e6309 |
children |
comparison
equal
deleted
inserted
replaced
2:48f07e7acaca | 3:13824d66b299 |
---|---|
96 } | 96 } |
97 break; | 97 break; |
98 case 'update': | 98 case 'update': |
99 // Update statistics. | 99 // Update statistics. |
100 if (og_is_group_post_type($node->type)) { | 100 if (og_is_group_post_type($node->type)) { |
101 if (isset($node->og_groups)) { | 101 if (isset($node->og_groups) && isset($node->og_initial_groups)) { |
102 $updated_gid = array_intersect($node->og_groups, $node->og_initial_groups); | 102 $updated_gid = array_intersect($node->og_groups, $node->og_initial_groups); |
103 $added_gid = array_diff($node->og_groups, $node->og_initial_groups); | 103 $added_gid = array_diff($node->og_groups, $node->og_initial_groups); |
104 $removed_gid = array_diff($node->og_initial_groups, $node->og_groups); | 104 $removed_gid = array_diff($node->og_initial_groups, $node->og_groups); |
105 foreach ($updated_gid as $gid) { | 105 foreach ($updated_gid as $gid) { |
106 og_statistics_update_last_node($node, $gid); | 106 og_statistics_update_last_node($node, $gid); |