function RealisticDummyContentAttribute::GetExtensions in Realistic Dummy Content 7
Get acceptable file extensions which contain data for this attribute.
For example, title attributes can be replaced by data in txt files, whereas as picture and field_image attributes require png, jpg, gif.
Return value
An array of acceptable file extensions.
2 calls to RealisticDummyContentAttribute::GetExtensions()
- RealisticDummyContentAttribute::GetCandidateFiles in api/
includes/ RealisticDummyContentAttribute.inc - Get all candidate files for a given field for this entity.
- RealisticDummyContentAttribute::ValueFromFile in api/
includes/ RealisticDummyContentAttribute.inc - Given a RealisticDummyContentFileGroup object, get structured property if extentions ok.
2 methods override RealisticDummyContentAttribute::GetExtensions()
- RealisticDummyContentImageField::GetExtensions in api/
includes/ RealisticDummyContentImageField.inc - Get acceptable file extensions which contain data for this attribute.
- RealisticDummyContentUserPicture::GetExtensions in api/
includes/ RealisticDummyContentUserPicture.inc - Get acceptable file extensions which contain data for this attribute.
File
- api/
includes/ RealisticDummyContentAttribute.inc, line 163 - Define RealisticDummyContentAttribute autoload class.
Class
- RealisticDummyContentAttribute
- Represents either a field or a property for an entity.
Code
function GetExtensions() {
// By default, use only text files. Other manipulators, say, for image fields
// or file fields, can specify other extension types.
return array(
'txt',
);
}