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

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

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

Loading…
Cancel
Save