diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-10-07 17:11:26 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-10-07 17:11:26 -0300 |
commit | af9f953bd66ebf3c276a13ff0259519301e2959a (patch) | |
tree | 13de3a9a046e4b1b58a734836cd2c8cfdd13f481 /muamba.module | |
parent | eccd915b23e2ea7a1485ecceae9e89ecc2e5c3f7 (diff) | |
download | muamba-af9f953bd66ebf3c276a13ff0259519301e2959a.tar.gz muamba-af9f953bd66ebf3c276a13ff0259519301e2959a.tar.bz2 |
Adding muamba_node_update()
Diffstat (limited to 'muamba.module')
-rw-r--r-- | muamba.module | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/muamba.module b/muamba.module index 5e3880a..1d72289 100644 --- a/muamba.module +++ b/muamba.module @@ -278,3 +278,15 @@ function muamba_views_api() { 'api' => 3, ); } + +/** + * Implements hook_node_update() + */ +function muamba_node_update($node) { + if ($node->type == MUAMBA_NODE_TYPE) { + db_update('muamba') + ->fields(array('owner' => $node->uid) + ->condition('nid', $node->nid) + ->execute(); + } +} |