https://github.com/chapter-three/change_files_location
Allows changing files locations for fields, and moves all related files to that new location using drush.
https://github.com/chapter-three/change_files_location
Last synced: 3 months ago
JSON representation
Allows changing files locations for fields, and moves all related files to that new location using drush.
- Host: GitHub
- URL: https://github.com/chapter-three/change_files_location
- Owner: chapter-three
- Created: 2016-08-26T18:42:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-26T19:05:53.000Z (over 9 years ago)
- Last Synced: 2025-01-18T06:27:38.496Z (about 1 year ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change_files_location.drush.inc
Awesome Lists containing this project
README
# Change Files Location drush script
Drupal module stub around a drush script that allows changing files locations for fields, and moves all related files to that new location.
## Usage
```
# drush help fdu
Examples:
drush field-file-directory-update node Change the file directory for the
affiliate field_affiliate_image field_affiliate_image field of the
--path='affiliate' affiliate content type.
Arguments:
type The type of the entity the field is
attached to.
bundle The bundle this field belongs to.
field The name of an existing field.
Options:
--path Optional subdirectory within the
upload destination where files will
be stored. Do not include preceding
or trailing slashes. This field
supports tokens.
Aliases: fdu
```