You are here

function _minisite_field_validate_minisite_file_blacklist in Mini site 7

Validate minisite file extension in blacklist.

1 call to _minisite_field_validate_minisite_file_blacklist()
_minisite_field_validate_minisite_file_settings in includes/minisite.field.inc
Element validate callback for the allowed file extensions field.

File

includes/minisite.field.inc, line 407
Minisite field.

Code

function _minisite_field_validate_minisite_file_blacklist(array $extensions) {

  // Load module inc file.
  module_load_include('inc', 'minisite', 'includes/minisite.site');
  $extensions_blacklist = minisite_site_extensions_blacklist();
  foreach ($extensions_blacklist as $ext) {
    if (in_array($ext, $extensions)) {
      return FALSE;
    }
  }
}