CRM-16373 - Save URLs and paths through settings instead of domain
[civicrm-core.git] / settings / Url.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
81621fee 4 | CiviCRM version 4.7 |
6a488035 5 +--------------------------------------------------------------------+
e7112fa7 6 | Copyright CiviCRM LLC (c) 2004-2015 |
6a488035
TO
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
d25dd0ee 26 */
6a488035
TO
27
28/**
29 *
30 * @package CRM
e7112fa7 31 * @copyright CiviCRM LLC (c) 2004-2015
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
08e57c58 38return array(
6a488035 39 'userFrameworkResourceURL' => array(
14f20d22
CW
40 'group' => 'url',
41 'group_name' => 'URL Preferences',
6a488035 42 'name' => 'userFrameworkResourceURL',
2937fb4a 43 'title' => 'CiviCRM Resource URL',
6a488035 44 'type' => 'String',
2937fb4a
TO
45 'html_type' => 'Text',
46 'quick_form_type' => 'Element',
08e57c58 47 'default' => NULL,
6a488035 48 'add' => '4.1',
6a488035
TO
49 'is_domain' => 1,
50 'is_contact' => 0,
2937fb4a 51 'description' => 'Absolute URL of the location where the civicrm module or component has been installed.',
08e57c58 52 'help_text' => NULL,
d9d7e7dd 53 'validate_callback' => 'CRM_Utils_Rule::urlish',
6a488035
TO
54 ),
55 'imageUploadURL' => array(
14f20d22
CW
56 'group' => 'url',
57 'group_name' => 'URL Preferences',
2937fb4a 58 'title' => 'Image Upload URL',
6a488035
TO
59 'name' => 'imageUploadURL',
60 'type' => 'String',
2937fb4a
TO
61 'html_type' => 'Text',
62 'quick_form_type' => 'Element',
08e57c58 63 'default' => NULL,
6a488035 64 'add' => '4.1',
6a488035
TO
65 'is_domain' => 1,
66 'is_contact' => 0,
2937fb4a 67 'description' => 'URL of the location for uploaded image files.',
08e57c58 68 'help_text' => NULL,
d9d7e7dd 69 'validate_callback' => 'CRM_Utils_Rule::urlish',
6a488035
TO
70 ),
71 'customCSSURL' => array(
14f20d22
CW
72 'group' => 'url',
73 'group_name' => 'URL Preferences',
6a488035 74 'name' => 'customCSSURL',
2937fb4a 75 'title' => 'Custom CSS URL',
6a488035 76 'type' => 'String',
2937fb4a
TO
77 'html_type' => 'Text',
78 'quick_form_type' => 'Element',
08e57c58 79 'default' => NULL,
6a488035 80 'add' => '4.1',
6a488035
TO
81 'is_domain' => 1,
82 'is_contact' => 0,
2937fb4a
TO
83 'description' => 'You can modify the look and feel of CiviCRM by adding your own stylesheet. For small to medium sized modifications, use your css file to override some of the styles in civicrm.css. Or if you need to make drastic changes, you can choose to disable civicrm.css completely.',
84 'help_text' => NULL,
d9d7e7dd 85 'validate_callback' => 'CRM_Utils_Rule::urlish',
2937fb4a
TO
86 ),
87 'extensionsURL' => array(
88 'group' => 'url',
89 'group_name' => 'URL Preferences',
90 'title' => 'Extension Resource URL',
91 'name' => 'extensionsURL',
92 'type' => 'String',
93 'html_type' => 'Text',
94 'quick_form_type' => 'Element',
95 'default' => NULL,
96 'add' => '4.1',
97 'is_domain' => 1,
98 'is_contact' => 0,
99 'description' => 'Base URL for extension resources (images, stylesheets, etc). This should match extensionsDir.',
08e57c58 100 'help_text' => NULL,
d9d7e7dd 101 'validate_callback' => 'CRM_Utils_Rule::urlish',
6a488035 102 ),
94f35fe9 103);