You are here

function minisite_site_extensions_blacklist in Mini site 7

Return minisite file extensions blacklist.

2 calls to minisite_site_extensions_blacklist()
_minisite_field_validate_minisite_file_blacklist in includes/minisite.field.inc
Validate minisite file extension in blacklist.
_minisite_field_validate_minisite_file_settings in includes/minisite.field.inc
Element validate callback for the allowed file extensions field.

File

includes/minisite.site.inc, line 76
minisite.site.inc

Code

function minisite_site_extensions_blacklist() {
  $extensions_blacklist =& drupal_static(__FUNCTION__);
  if (!isset($extensions_blacklist)) {
    $extensions_blacklist = preg_replace('/([, ]+\\.?)/', ' ', trim(strtolower(MINISITE_EXTENSIONS_BLACKLIST)));
    $extensions_blacklist = array_filter(explode(' ', $extensions_blacklist));
    $extensions_blacklist = array_unique($extensions_blacklist);
  }
  return $extensions_blacklist;
}