Create settings category - refs #7402

ofaj
Angel Fernando Quiroz Campos 9 years ago
parent 630c349e94
commit 0c6aee5eee
  1. 6
      app/Migrations/Schema/V111/Version20160302133200.php
  2. 2
      main/admin/settings.php
  3. 6
      main/install/data.sql

@ -24,7 +24,7 @@ class Version20160302133200 extends AbstractMigrationChamilo
'messaging_allow_send_push_notification', 'messaging_allow_send_push_notification',
null, null,
'radio', 'radio',
'Platform', 'WebServices',
($allowSendPushNotification ? 'true' : 'false'), ($allowSendPushNotification ? 'true' : 'false'),
'MessagingAllowSendPushNotificationTitle', 'MessagingAllowSendPushNotificationTitle',
'MessagingAllowSendPushNotificationComment', 'MessagingAllowSendPushNotificationComment',
@ -44,7 +44,7 @@ class Version20160302133200 extends AbstractMigrationChamilo
'messaging_gdc_project_number', 'messaging_gdc_project_number',
null, null,
'textfield', 'textfield',
'Platform', 'WebServices',
!empty($gdcProjectNumber) ? $gdcProjectNumber : '', !empty($gdcProjectNumber) ? $gdcProjectNumber : '',
'MessagingGDCProjectNumberTitle', 'MessagingGDCProjectNumberTitle',
'MessagingGDCProjectNumberComment', 'MessagingGDCProjectNumberComment',
@ -60,7 +60,7 @@ class Version20160302133200 extends AbstractMigrationChamilo
'messaging_gdc_api_key', 'messaging_gdc_api_key',
null, null,
'textfield', 'textfield',
'Platform', 'WebServices',
!empty($gdcApiKey) ? $gdcApiKey : '', !empty($gdcApiKey) ? $gdcApiKey : '',
'MessagingGDCApiKeyTitle', 'MessagingGDCApiKeyTitle',
'MessagingGDCApiKeyComment', 'MessagingGDCApiKeyComment',

@ -419,6 +419,7 @@ $action_images['plugins'] = 'plugins.png';
$action_images['shibboleth'] = 'shibboleth.png'; $action_images['shibboleth'] = 'shibboleth.png';
$action_images['facebook'] = 'facebook.png'; $action_images['facebook'] = 'facebook.png';
$action_images['crons'] = 'crons.png'; $action_images['crons'] = 'crons.png';
$action_images['webservices'] = 'webservices.png';
$action_array = array(); $action_array = array();
$resultcategories = array(); $resultcategories = array();
@ -444,6 +445,7 @@ $resultcategories[] = array('category' => 'CAS');
$resultcategories[] = array('category' => 'Shibboleth'); $resultcategories[] = array('category' => 'Shibboleth');
$resultcategories[] = array('category' => 'Facebook'); $resultcategories[] = array('category' => 'Facebook');
$resultcategories[] = ['category' => 'Crons']; $resultcategories[] = ['category' => 'Crons'];
$resultcategories[] = ['category' => 'WebServices'];
foreach ($resultcategories as $row) { foreach ($resultcategories as $row) {
$url = array(); $url = array();

@ -1806,9 +1806,9 @@ VALUES
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable)
VALUES VALUES
('messaging_allow_send_push_notification', NULL, 'radio', 'Platform', 'false', 'MessagingAllowSendPushNotificationText', 'MessagingAllowSendPushNotificationComment', NULL, NULL, 0), ('messaging_allow_send_push_notification', NULL, 'radio', 'WebServices', 'false', 'MessagingAllowSendPushNotificationText', 'MessagingAllowSendPushNotificationComment', NULL, NULL, 0),
('messaging_gdc_project_number', NULL, 'textfield', 'Platform', '', 'MessagingGDCProjectNumberTitle', 'MessagingGDCProjectNumberComment', NULL, NULL, 0), ('messaging_gdc_project_number', NULL, 'textfield', 'WebServices', '', 'MessagingGDCProjectNumberTitle', 'MessagingGDCProjectNumberComment', NULL, NULL, 0),
('messaging_gdc_api_key', NULL, 'textfield', 'Platform', '', 'MessagingGDCApiKeyTitle', 'MessagingGDCApiKeyComment', NULL, NULL, 0); ('messaging_gdc_api_key', NULL, 'textfield', 'WebServices', '', 'MessagingGDCApiKeyTitle', 'MessagingGDCApiKeyComment', NULL, NULL, 0);
INSERT INTO settings_options (variable, value, display_text) INSERT INTO settings_options (variable, value, display_text)
VALUES VALUES

Loading…
Cancel
Save