diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-15 03:39:42 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-15 03:39:42 +0000 |
commit | 71c4e3ec62427e562965561f5a7b13aa64737595 (patch) | |
tree | 312ab891d1692d08008ab3bb20a8bb22f44d1f06 /modules/simpletest/tests/entity_crud_hook_test.module | |
parent | 0afbd86d32a94c3b11c6cbe4204e66d8cfa1da3a (diff) | |
download | brdo-71c4e3ec62427e562965561f5a7b13aa64737595.tar.gz brdo-71c4e3ec62427e562965561f5a7b13aa64737595.tar.bz2 |
#968458 by Dave Reid, sun, fago: Add Missing hook_entity_presave().
Diffstat (limited to 'modules/simpletest/tests/entity_crud_hook_test.module')
-rw-r--r-- | modules/simpletest/tests/entity_crud_hook_test.module | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/modules/simpletest/tests/entity_crud_hook_test.module b/modules/simpletest/tests/entity_crud_hook_test.module index 2d1b144c9..12252d144 100644 --- a/modules/simpletest/tests/entity_crud_hook_test.module +++ b/modules/simpletest/tests/entity_crud_hook_test.module @@ -2,6 +2,59 @@ // $Id$ // +// Presave hooks +// + +/** + * Implements hook_entity_presave(). + */ +function entity_crud_hook_test_entity_presave($entity, $type) { + $_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called for type ' . $type); +} + +/** + * Implements hook_comment_presave(). + */ +function entity_crud_hook_test_comment_presave() { + $_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called'); +} + +/** + * Implements hook_file_presave(). + */ +function entity_crud_hook_test_file_presave() { + $_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called'); +} + +/** + * Implements hook_node_presave(). + */ +function entity_crud_hook_test_node_presave() { + $_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called'); +} + +/** + * Implements hook_taxonomy_term_presave(). + */ +function entity_crud_hook_test_taxonomy_term_presave() { + $_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called'); +} + +/** + * Implements hook_taxonomy_vocabulary_presave(). + */ +function entity_crud_hook_test_taxonomy_vocabulary_presave() { + $_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called'); +} + +/** + * Implements hook_user_presave(). + */ +function entity_crud_hook_test_user_presave() { + $_SESSION['entity_crud_hook_test'][] = (__FUNCTION__ . ' called'); +} + +// // Insert hooks // |