Révision ed9a13f1
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/feeds/feeds.drush.inc | ||
---|---|---|
139 | 139 |
switch ($section) { |
140 | 140 |
case 'drush:feeds-list-importers': |
141 | 141 |
return dt('Show a list of available Feeds importers with information about them.'); |
142 |
|
|
142 | 143 |
case 'drush:feeds-list-feeds': |
143 | 144 |
return dt("List all feed sources. You can limit the number of feed sources to display by setting the option '--limit'."); |
145 |
|
|
144 | 146 |
case 'drush:feeds-import': |
145 | 147 |
$help = dt("Import items from a feed. Follow the command with the importer name to import items with. If the importer is attached to a content type, specify also the feed node with the option '--nid'."); |
146 | 148 |
$help .= "\n" . dt("Note that the options '--file', '--stdin' and '--url' temporary bypass the configured fetcher and do *not* update the source configuration. For example, if a file was uploaded for the feed source, that file will remain there even when you specify a different file using the '--file' option. Same story applies for when importing from a url. If you omit these options, the last stored source will be used."); |
147 | 149 |
return $help; |
150 |
|
|
148 | 151 |
case 'drush:feeds-import-all': |
149 | 152 |
return dt('Import items from all feeds. Optionally specify the importer name to import all feeds for.'); |
153 |
|
|
150 | 154 |
case 'drush:feeds-clear': |
151 | 155 |
return dt("Delete all items from a feed. Follow the command with the importer name to delete items from. If the importer is attached to a content type, specify also the feed node with the option '--nid'."); |
156 |
|
|
152 | 157 |
case 'drush:feeds-enable': |
153 | 158 |
return dt('Enable the specified Feeds importers. Follow the command with a space delimited list of importer names.'); |
159 |
|
|
154 | 160 |
case 'drush:feeds-disable': |
155 | 161 |
return dt('Disable the specified Feeds importers. Follow the command with a space delimited list of importer names.'); |
162 |
|
|
156 | 163 |
case 'drush:feeds-delete': |
157 | 164 |
return dt('Delete the specified Feeds importers. Follow the command with a space delimited list of importer names.'); |
165 |
|
|
158 | 166 |
case 'drush:feeds-revert': |
159 | 167 |
return dt('Revert the specified Feeds importers. Follow the command with a space delimited list of importer names.'); |
160 | 168 |
} |
... | ... | |
841 | 849 |
* NULL otherwise. |
842 | 850 |
*/ |
843 | 851 |
function _drush_feeds_find_file($filename) { |
844 |
// If the full path to the file is specified, the file will be found right away. |
|
852 |
// If the full path to the file is specified, the file will be found right |
|
853 |
// away. |
|
845 | 854 |
if (is_file($filename)) { |
846 | 855 |
// Found! |
847 | 856 |
return $filename; |
Formats disponibles : Unified diff
Weekly update of contrib modules