0
我目前打印從這樣的搜索:自定義搜索表單
$block = module_invoke('search', 'block_view', 'search');
print render($block);
至極產生:
<form action="/sescam/" method="post" id="search-block-form" accept-charset="UTF-8">
<div>
<div class="container-inline">
<h2 class="element-invisible">Search form</h2>
<div class="form-item form-type-textfield form-item-search-block-form">
<label class="element-invisible" for="edit-search-block-form--2">Search</label>
<input title="Enter the terms you wish to search for." type="text" id="edit-search-block-form--2" name="search_block_form" value="" size="15" maxlength="128" class="form-text" />
</div>
<div class="form-actions form-wrapper" id="edit-actions">
<input type="submit" id="edit-submit" name="op" value="Search" class="form-submit" />
</div>
<input type="hidden" name="form_build_id" value="form-NhLKDp33kDMoJjHqw6gDFJw_A_Kp7Dhvrt_w0V-jk6U" />
<input type="hidden" name="form_token" value="e9aNbw3gz2mWvZUSdjl54aXTlesQsNkn7cGSXVMpoWI" />
<input type="hidden" name="form_id" value="search_block_form" />
</div>
</div>
</form>
的事情是,我想自定義一點點這個HTML輸出,
我該怎麼做?
CNC中
我試圖把它添加到我的template.php
function my_theme_form_search_form_alter (& $form, & $form_state)
{
print_r($form);
print_r($form_state);
}
的事情是,那些print_r
不會輸出任何東西,
無水想法?
謝謝!