summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2012-01-24 13:52:04 (GMT)
committer xjm2012-01-24 13:52:04 (GMT)
commit28f259763c2ea61fda7847005df6264a9a480d00 (patch)
tree34c34b9cdd7f2ebccdc3fc438ef76375359522c4
parent00ed2d811d396220d3d00e6d5dac7c7bae8fd3ad (diff)
update hook finally.
-rw-r--r--taxonomy_access.install5
1 files changed, 2 insertions, 3 deletions
diff --git a/taxonomy_access.install b/taxonomy_access.install
index 55e75fe..a91b330 100644
--- a/taxonomy_access.install
+++ b/taxonomy_access.install
@@ -201,9 +201,8 @@ function taxonomy_access_update_7002() {
foreach ($ta_configs as $config) {
if (!in_array($config, $td_configs)) {
- $record = $global_defaults[$config->rid];
- $record->vid = $config->vid;
- $records[] = _taxonomy_access_format_grant_record($config->vid, $record);
+ $record = (array) $global_defaults[$config->rid];
+ $records[] = _taxonomy_access_format_grant_record($config->vid, $config->rid, $record, TRUE);
}
}