Created
June 22, 2017 08:04
-
-
Save Strae/03e26963ea70de5b6c86704872edc0d2 to your computer and use it in GitHub Desktop.
Drupal 7 embed view with filters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$view = views_get_view('glossario'); | |
$view->dom_id = hash( 'md5', microtime( true ) . mt_rand() ); | |
$view->set_display('search_results'); | |
$view->is_cacheable = FALSE; | |
$view->exposed_input['title'] = $_GET['term']; | |
return $view->render(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment