Revision a8cee257
Added by Assos Assos almost 5 years ago
drupal7/sites/all/modules/file_entity/file_entity.tokens.inc | ||
---|---|---|
185 | 185 |
} |
186 | 186 |
} |
187 | 187 |
else { |
188 |
$replacements[$original] = $return; |
|
188 |
if (!is_null($return)) { |
|
189 |
$replacements[$original] = $return; |
|
190 |
} |
|
189 | 191 |
} |
190 | 192 |
} |
191 | 193 |
|
... | ... | |
317 | 319 |
} |
318 | 320 |
|
319 | 321 |
// If file type is video |
320 |
elseif ($file['type'] == 'video') { |
|
321 |
list($provider, $filename) = explode('://v/', $file['uri']);
|
|
322 |
elseif ($file['type'] == 'video' && strpos($file['uri'], '://v')) {
|
|
323 |
list($provider, $filename) = preg_split('!://v.*/!', $file['uri']);
|
|
322 | 324 |
$imageuri = "public://file_entity-$provider/$filename.jpg"; |
323 | 325 |
} |
324 | 326 |
|
Also available in: Unified diff
Weekly update of contrib modules