forked from nglasl/silverstripe-mediawesome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.php
37 lines (32 loc) · 932 Bytes
/
_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* The mediawesome specific configuration settings.
* @author Nathan Glasl <[email protected]>
*/
if(!defined('MEDIAWESOME_PATH')) {
define('MEDIAWESOME_PATH', rtrim(basename(dirname(__FILE__))));
}
// Update the current media holder/page images.
$configuration = Config::inst();
$configuration->update('MediaHolder', 'icon', MEDIAWESOME_PATH . '/images/holder.png');
$configuration->update('MediaPage', 'icon', MEDIAWESOME_PATH . '/images/page.png');
/**
*
* EXAMPLE: Apply custom default media types with respective attributes, or additional attributes to existing default media types.
*
* @parameter <{MEDIA_TYPES_AND_ATTRIBUTES}> array(array(string))
*
* MediaPage::customise_defaults(array(
* '<Media Type>' => array(
* '<Attribute>',
* '<Attribute>',
* '<Attribute>'
* ),
* '<Media Type>' => array(
* '<Attribute>',
* '<Attribute>',
* '<Attribute>'
* )
* ));
*
*/