diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-08 10:02:41 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-08 10:02:41 +0000 |
commit | 4d46b7cdf838900dc3f052197b63a9ce80d3992b (patch) | |
tree | b3ea3efb3c29a98afb8724c5655b82864395b928 /modules/path | |
parent | 370d07e9f75bf5ebdd6ac87de0f0b956d3f8dabd (diff) | |
download | brdo-4d46b7cdf838900dc3f052197b63a9ce80d3992b.tar.gz brdo-4d46b7cdf838900dc3f052197b63a9ce80d3992b.tar.bz2 |
Roll-back of #595084; type-hinting parameters at stdClass makes it so you can't ever pass in another type of class.
Diffstat (limited to 'modules/path')
-rw-r--r-- | modules/path/path.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/path/path.module b/modules/path/path.module index 02ee9dc65..9417f8eba 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -180,7 +180,7 @@ function path_form_element_validate($element, &$form_state, $complete_form) { /** * Implement hook_node_insert(). */ -function path_node_insert(stdClass $node) { +function path_node_insert($node) { if (isset($node->path)) { $path = $node->path; $path['alias'] = trim($path['alias']); @@ -197,7 +197,7 @@ function path_node_insert(stdClass $node) { /** * Implement hook_node_update(). */ -function path_node_update(stdClass $node) { +function path_node_update($node) { if (isset($node->path)) { $path = $node->path; $path['alias'] = trim($path['alias']); @@ -218,7 +218,7 @@ function path_node_update(stdClass $node) { /** * Implement hook_node_delete(). */ -function path_node_delete(stdClass $node) { +function path_node_delete($node) { // Delete all aliases associated with this node. path_delete(array('source' => 'node/' . $node->nid)); } |