@@ -216,44 +216,44 @@ function third_party_service_form($form, &$form_state, $entity) {
216216 '#value' => $entity,
217217 );
218218
219- $form['name'] = [
219+ $form['name'] = array(
220220 '#type' => 'textfield',
221221 '#title' => t('Name'),
222222 '#description' => t('This is the name of the service.'),
223223 '#default_value' => property_exists($third_party_service, 'name') ? $third_party_service->getName() : '',
224- ] ;
224+ ) ;
225225
226- $form['vanisher'] = [
226+ $form['vanisher'] = array(
227227 '#type' => 'select',
228228 '#title' => 'Vanisher',
229229 '#description' => t('Choose the vanisher for the service control.'),
230230 '#default_value' => property_exists($third_party_service, 'vanisher') ? $third_party_service->getVanisher() : '',
231- '#options' => $vanisher->getInstalledVanisherNames() ?: [] , // todo lars
231+ '#options' => $vanisher->getInstalledVanisherNames() ?: array() , // todo lars
232232 '#empty_value' => '',
233233 '#required' => TRUE,
234- ] ;
234+ ) ;
235235
236- $form['enabled'] = [
236+ $form['enabled'] = array(
237237 '#type' => 'checkbox',
238238 '#title' => t('Enable Service Control?'),
239239 '#description' => t('If activated this service will be controlled with tarteaucitron.'),
240240 '#default_value' => property_exists($third_party_service, 'enabled') ? $third_party_service->isEnabled() : FALSE,
241- ] ;
241+ ) ;
242242
243- $form['optional_fields'] = [
243+ $form['optional_fields'] = array(
244244 '#type' => 'fieldset',
245245 '#title' => t('Optional Fields'),
246246 '#collapsible' => TRUE,
247247 '#collapsed' => TRUE,
248- ] ;
248+ ) ;
249249
250- $form['optional_fields']['info'] = [
250+ $form['optional_fields']['info'] = array(
251251 '#type' => 'textarea',
252252 '#title' => t('Info Content'),
253253 '#description' => t('This content will be displayed instead until the user activates the service.'),
254254 '#default_value' => property_exists($third_party_service, 'info') ? $third_party_service->getInfo() : '',
255255 '#required' => FALSE,
256- ] ;
256+ ) ;
257257
258258 $form['submit'] = array(
259259 '#type' => 'submit',
@@ -324,14 +324,14 @@ function third_party_service_form_submit($form, &$form_state) {
324324
325325
326326 if ($id) {
327- backdrop_set_message(t('Saved the %label Third Party Service.', [
327+ backdrop_set_message(t('Saved the %label Third Party Service.', array(
328328 '%label' => $entity->label(),
329- ] ));
329+ ) ));
330330 }
331331 else {
332- backdrop_set_message(t('The %label Third Party Service was not saved.', [
332+ backdrop_set_message(t('The %label Third Party Service was not saved.', array(
333333 '%label' => $entity->label(),
334- ] ));
334+ ) ));
335335 }
336336
337337 $form_state['redirect'] = 'admin/config/system/gdpr-cookies/third-party-service';
@@ -488,12 +488,12 @@ function gdpr_cookies_settings_page() {
488488 '#default_value' => config_get('gdpr_cookies.settings','gdpr_cookies_remove_credit') ? TRUE : FALSE,
489489 );
490490
491- $form['gdpr_cookies_default_rejected'] = [
491+ $form['gdpr_cookies_default_rejected'] = array(
492492 '#type' => 'checkbox',
493493 '#title' => t('Default Rejected'),
494494 '#description' => t('Should all services be rejected by default?'),
495495 '#default_value' => config_get('gdpr_cookies.settings','gdpr_cookies_default_rejected') ? TRUE : FALSE,
496- ] ;
496+ ) ;
497497
498498 // Add a submit button
499499 $form['actions']['#type'] = 'actions';
0 commit comments