Skip to main content
added 24 characters in body
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

function hook_views_pre_execute(&$view) { if ($view->name == 'XYZ') { $query = (string)$view->build_info['query']; echo $query; } }

function hook_views_pre_execute(&$view) {
  if ($view->name == 'XYZ') {
    $query = (string)$view->build_info['query'];
    echo $query;
  }
}

function hook_views_pre_execute(&$view) { if ($view->name == 'XYZ') { $query = (string)$view->build_info['query']; echo $query; } }

function hook_views_pre_execute(&$view) {
  if ($view->name == 'XYZ') {
    $query = (string)$view->build_info['query'];
    echo $query;
  }
}
Source Link

function hook_views_pre_execute(&$view) { if ($view->name == 'XYZ') { $query = (string)$view->build_info['query']; echo $query; } }