function socialbase_form_search_content_form_alter in Open Social 8.9
Same name and namespace in other branches
- 8.6 themes/socialbase/includes/form.inc \socialbase_form_search_content_form_alter()
- 8.7 themes/socialbase/includes/form.inc \socialbase_form_search_content_form_alter()
- 8.8 themes/socialbase/includes/form.inc \socialbase_form_search_content_form_alter()
Implements hook_form_search_content_form_alter().
File
- themes/
socialbase/ includes/ form.inc, line 504 - The form inc file for the Social base theme.
Code
function socialbase_form_search_content_form_alter(&$form) {
$form['actions']['submit']['#icon'] = [
'#type' => "inline_template",
'#template' => '<svg class="icon--search"><use xlink:href="#icon-search"></use></svg>',
];
}