function realistic_dummy_content_api_entity_presave in Realistic Dummy Content 7
Same name and namespace in other branches
- 8.2 api/realistic_dummy_content_api.module \realistic_dummy_content_api_entity_presave()
- 8 api/realistic_dummy_content_api.module \realistic_dummy_content_api_entity_presave()
- 7.2 api/realistic_dummy_content_api.module \realistic_dummy_content_api_entity_presave()
- 3.x api/realistic_dummy_content_api.module \realistic_dummy_content_api_entity_presave()
Implements hook_entity_insert().
File
- api/
realistic_dummy_content_api.module, line 40 - API code allowing other modules to generate realistic dummy content. See the Realistic Dummy Content module for an example of how to use.
Code
function realistic_dummy_content_api_entity_presave($entity, $type) {
if ($type != 'user') {
_realistic_dummy_content_api_entity_presave($entity, $type);
}
}