Skip to content
Snippets Groups Projects
Commit 48b367c9 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #46985 by merlinofchaos: fixed problem with blogapi checkboxes.

parent 3478cc50
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -564,7 +564,7 @@ function blogapi_settings() {
$defaults = isset($node_types['blog']) ? array('blog' => 1) : array();
$form['blogapi_node_types'] = array(
'#type' => 'checkboxes', '#title' => t('Blog types'), '#required' => TRUE,
'#default_value' => array_keys(variable_get('blogapi_node_types', $defaults), 1), '#options' => $node_types,
'#default_value' => variable_get('blogapi_node_types', $defaults), '#options' => $node_types,
'#description' => t('Select the content types for which you wish to enable posting via blogapi. Each type will appear as a different "blog" in the client application (if supported).')
);
......
......@@ -564,7 +564,7 @@ function blogapi_settings() {
$defaults = isset($node_types['blog']) ? array('blog' => 1) : array();
$form['blogapi_node_types'] = array(
'#type' => 'checkboxes', '#title' => t('Blog types'), '#required' => TRUE,
'#default_value' => array_keys(variable_get('blogapi_node_types', $defaults), 1), '#options' => $node_types,
'#default_value' => variable_get('blogapi_node_types', $defaults), '#options' => $node_types,
'#description' => t('Select the content types for which you wish to enable posting via blogapi. Each type will appear as a different "blog" in the client application (if supported).')
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment