Skip to content

Instantly share code, notes, and snippets.

@Semdevmaster
Created December 8, 2017 09:13
Show Gist options
  • Select an option

  • Save Semdevmaster/3aa95ebfd6d9abf14569643d84570132 to your computer and use it in GitHub Desktop.

Select an option

Save Semdevmaster/3aa95ebfd6d9abf14569643d84570132 to your computer and use it in GitHub Desktop.
//Очистить источники файлов на вкладке файлы.
//1)Создаём в нужном источнике параметр - hideSource (булев) - значение 1
//2)Создаём плагин на событие - OnMediaSourceGetProperties
<?php
$properties = json_decode($properties, true);
if (!empty($properties['hideSource']) AND !empty($properties['hideSource']['value']) AND $_REQUEST['node'] == '/') {
die('{}');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment