function realistic_dummy_content_api_improve_dummy_content in Realistic Dummy Content 8
Same name and namespace in other branches
- 8.2 api/realistic_dummy_content_api.module \realistic_dummy_content_api_improve_dummy_content()
- 7.2 api/realistic_dummy_content_api.module \realistic_dummy_content_api_improve_dummy_content()
- 7 api/realistic_dummy_content_api.module \realistic_dummy_content_api_improve_dummy_content()
- 3.x api/realistic_dummy_content_api.module \realistic_dummy_content_api_improve_dummy_content()
Insert or improve dummy data in an entity of a given type.
Parameters
$entity: The object for a given type, for example this can be a user object or a node object.
$type: The type of the information to change, for example 'user' or 'node'.
Throws
\Exception
File
- api/
realistic_dummy_content_api.module, line 56 - 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_improve_dummy_content(&$entity, $type) {
return RealisticDummyContent::improve_dummy_content($entity, $type);
}