From 4d46b7cdf838900dc3f052197b63a9ce80d3992b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 8 Nov 2009 10:02:41 +0000 Subject: Roll-back of #595084; type-hinting parameters at stdClass makes it so you can't ever pass in another type of class. --- modules/path/path.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/path/path.module') 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)); } -- cgit v1.2.3