function file_deploy_entity_alter in Deploy - Content Staging 7.3
Same name and namespace in other branches
- 7.2 deploy.core.inc \file_deploy_entity_alter()
Implements hook_deploy_entity_alter().
Related topics
File
- ./
deploy.core.inc, line 37 - Deploy module functions for core entities.
Code
function file_deploy_entity_alter(&$entity, $entity_type) {
if ($entity_type == 'file') {
if (!isset($entity->file_contents)) {
$entity->file_contents = base64_encode(file_get_contents($entity->uri));
}
}
}