Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Implements hook_views_data_alter().
- *
- * Add the property nid from the url as condition to the table join.
- */
- function mh_search_wish_views_data_alter(&$data) {
- if (isset($_GET['property-nid'])) {
- $data['search_wish_hit_status']['table']['join']['node']['extra'] = array(
- array(
- 'field' => 'property_nid',
- 'value' => $_GET['property-nid'],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement