You are here

public function FeedsEnclosure::setAllowedExtensions in Feeds 7.2

Sets the list of allowed extensions.

Parameters

string $extensions: The list of allowed extensions separated by a space.

File

plugins/FeedsParser.inc, line 353
Contains FeedsParser and related classes.

Class

FeedsEnclosure
Enclosure element, can be part of the result array.

Code

public function setAllowedExtensions($extensions) {

  // Normalize whitespace so that empty extensions are not allowed.
  $this->allowedExtensions = drupal_strtolower(trim(preg_replace('/\\s+/', ' ', $extensions)));
}