Projet

Général

Profil

Révision 388c412d

Ajouté par Assos Assos il y a environ 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/media/modules/media_wysiwyg/media_wysiwyg.module
694 694
    drupal_write_record('media_restrict_wysiwyg', $record);
695 695
  }
696 696
}
697

  
698
/**
699
 * Implements hook_media_browser_params_alter().
700
 */
701
function media_wysiwyg_media_browser_params_alter(&$params) {
702
  // Set the media browser options as defined in the interface.
703
  if (!empty($params['id']) && $params['id'] === 'media_wysiwyg') {
704
    $params = array(
705
      'enabledPlugins' => variable_get('media_wysiwyg_wysiwyg_browser_plugins', array()),
706
      'file_directory' => variable_get('media_wysiwyg_wysiwyg_upload_directory', ''),
707
      'types' => variable_get('media_wysiwyg_wysiwyg_allowed_types', array('audio', 'image', 'video', 'document')),
708
      'id' => 'media_wysiwyg',
709
    ) + $params;
710
  }
711
}

Formats disponibles : Unified diff