Commit 33452c61 authored by Dries's avatar Dries
Browse files

- Patch #550742 by sun: removed some left-over code.

parent 70abacbb
......@@ -1146,7 +1146,6 @@ function theme_get_setting($setting_name, $theme = NULL) {
'toggle_logo' => 1,
'toggle_favicon' => 1,
'toggle_name' => 1,
'toggle_search' => 1,
'toggle_slogan' => 1,
'toggle_node_user_picture' => 1,
'toggle_comment_user_picture' => 1,
......
......@@ -395,11 +395,6 @@ class SearchBlockTestCase extends DrupalWebTestCase {
// Create and login user
$admin_user = $this->drupalCreateUser(array('administer blocks', 'search content'));
$this->drupalLogin($admin_user);
// Disable the theme form to avoid confusion.
$settings = theme_get_settings();
$settings['toggle_search'] = FALSE;
variable_set('theme_settings', $settings);
}
function testSearchFormBlock() {
......
......@@ -453,9 +453,6 @@ function system_theme_settings($form, &$form_state, $key = '') {
$disabled['toggle_node_user_picture'] = TRUE;
$disabled['toggle_comment_user_picture'] = TRUE;
}
if (!module_exists('search')) {
$disabled['toggle_search'] = TRUE;
}
$form['theme_settings'] = array(
'#type' => 'fieldset',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment