mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 11:03:17 +00:00
17 lines
512 B
PHP
17 lines
512 B
PHP
<?php
|
|
|
|
require __DIR__ . '/../../lib/autoload.php';
|
|
|
|
$app = require __DIR__ . '/../../lib/Alchemy/Phrasea/Application/Root.php';
|
|
|
|
foreach ($app->getDataboxes() as $databox) {
|
|
$structure = $databox->get_subdef_structure();
|
|
foreach ($structure as $group => $subdefs) {
|
|
foreach ($subdefs as $subdef) {
|
|
if (!in_array(strtolower($subdef->get_name()), array('preview', 'thumbnail'))) {
|
|
$structure->delete_subdef($group, $subdef->get_name());
|
|
}
|
|
}
|
|
}
|
|
}
|