- Patch #629826 by Jody Lynn: theme setting toggles for comments appear when the comment module is disabled.
parent
d5c460ea28
commit
3d62d3703b
|
@ -486,6 +486,10 @@ function system_theme_settings($form, &$form_state, $key = '') {
|
||||||
$disabled['toggle_node_user_picture'] = TRUE;
|
$disabled['toggle_node_user_picture'] = TRUE;
|
||||||
$disabled['toggle_comment_user_picture'] = TRUE;
|
$disabled['toggle_comment_user_picture'] = TRUE;
|
||||||
}
|
}
|
||||||
|
if (!module_exists('comment')) {
|
||||||
|
$disabled['toggle_comment_user_picture'] = TRUE;
|
||||||
|
$disabled['toggle_comment_user_verification'] = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
$form['theme_settings'] = array(
|
$form['theme_settings'] = array(
|
||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
|
|
Loading…
Reference in New Issue