You are here

function RealisticDummyContentAttribute::GetCandidateFiles in Realistic Dummy Content 7

Get all candidate files for a given field for this entity.

1 call to RealisticDummyContentAttribute::GetCandidateFiles()
RealisticDummyContentAttribute::Change in api/includes/RealisticDummyContentAttribute.inc
Changes this attribute by looking for data in files.

File

api/includes/RealisticDummyContentAttribute.inc, line 172
Define RealisticDummyContentAttribute autoload class.

Class

RealisticDummyContentAttribute
Represents either a field or a property for an entity.

Code

function GetCandidateFiles() {
  $files = array();
  foreach (module_list() as $module) {
    $filepath = DRUPAL_ROOT . '/' . drupal_get_path('module', $module) . '/realistic_dummy_content/fields/' . $this
      ->GetEntityType() . '/' . $this
      ->GetBundle() . '/' . $this
      ->GetName();
    $files = array_merge($files, RealisticDummyContentEnvironment::GetAllFileGroups($filepath, $this
      ->GetExtensions()));
  }
  return $files;
}