function uc_wishlist_block_search_form_submit in UC Wish List 6
Same name and namespace in other branches
- 7 uc_wishlist.module \uc_wishlist_block_search_form_submit()
File
- ./
uc_wishlist.module, line 806 - Allows users to create public shopping/wish lists.
Code
function uc_wishlist_block_search_form_submit($form, &$form_state) {
if (empty($form_state['values']['keywords'])) {
$form_state['redirect'] = 'wishlist/search';
}
else {
$form_state['redirect'] = 'wishlist/search/' . drupal_urlencode($form_state['values']['keywords']);
}
}