function realistic_dummy_content_api_argcheck_entitytype in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/realistic_dummy_content_api.module \realistic_dummy_content_api_argcheck_entitytype()
- 3.x api/realistic_dummy_content_api.module \realistic_dummy_content_api_argcheck_entitytype()
Callback to make sure data is a content type, not a bundle.
Parameters
mixed $data: Some data to check.
Return value
bool Whether or not the data is ok.
2 string references to 'realistic_dummy_content_api_argcheck_entitytype'
- RealisticDummyContentEntityBase::__construct in api/
src/ includes/ RealisticDummyContentEntityBase.php - Constructor.
- realistic_dummy_content_api_improve_dummy_content in api/
realistic_dummy_content_api.module - Insert or improve dummy data in an entity of a given type.
File
- api/
realistic_dummy_content_api.module, line 65 - API code allowing other modules to generate realistic dummy content.
Code
function realistic_dummy_content_api_argcheck_entitytype($data) {
return is_string($data) && $data != 'article';
}