Hello,

I want to change the "Search this site" text which is displayed when adding the search form to a region. I searched all the Drupal installation directories and subfolders, and the theme folders all over the place for the string "Search this site".

It doesn't come up anywhere in a full site search! So where does the search form is being put together where I can change that string?

Thanks

Comments

hectorplus’s picture

Go to your blocks section, locate the search block, click on Configure, there is a title field, enter a title or type <none> for no title

pentool’s picture

No, that was not my question, but thanks.

pentool’s picture

Ok, so I've found using the Devel Themer module, that the block.tpl.php file outputs the "content" variable, eg
<?php print $block->content ?>

That little Themer module will tell me, (when you clicking on the array buttons) that the content is defined as:

<span id="thmr_53" class="thmr_call">
	<form action="/dp/admin" accept-charset="UTF-8" method="post" id="search-block-form">
		<div>
			<span id="thmr_44" class="thmr_call">
				<div class="container-inline">
					<span id="thmr_45" class="thmr_call">
						<div class="form-item" id="edit-search-block-form-1-wrapper">
							<label for="edit-search-block-form-1">Search this site:</label>
							<input type="text" maxlength="128" name="search_block_form" id="edit-search-block-form-1" size="15" value="" title="Enter the terms you wish to search for." class="form-text" />
						</div>
					</span>
					<span id="thmr_47" class="thmr_call">
						<span id="thmr_48" class="thmr_call">
							<input type="submit" name="op" id="edit-submit" value="Search" class="form-submit" />
						</span>
					</span>
					<input type="hidden" name="form_build_id" id="form-bcc65da102e18a56ae424956c2ae7f07" value="form-bcc65da102e18a56ae424956c2ae7f07" />
					<span id="thmr_50" class="thmr_call">
						<input type="hidden" name="form_token" id="edit-search-block-form-form-token" value="fa422ad45fac9e6ff1bc821e30c9ba00" />
					</span>
					<input type="hidden" name="form_id" id="edit-search-block-form" value="search_block_form" />
				</div>
			</span>
		</div>
	</form>
</span>

So my question is now, where do they put the above listed code into the "content" variable?

john.kenney’s picture

use this module - http://drupal.org/project/stringoverrides - and you'll be done in 5 minutes.

allows you to replace any text string on your site. changes it in all instances, so you can only use on things where that is ok.

will not remove or change the ':'.

pentool’s picture

Will check it out. Thanks.