Body: <p>I want to alter the query run in the hook_pageRun(&amp;$page)  under Manage <br>Events Page to alter the (event list) results shown here. I can alter<br> the rows from hook_civicrm_pageRun , but I want to make changes <br>in that row based on the values entered in the <br>custom filter (e.g. default filter available is Event Type) 
  <br>Suppose I change the Event Status(custom filter) , I want to change the results of $row <br>based on that filter.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-29T12:35:20.927Z
Comments.Text: Don't you get the filled values in $_POST?
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-29T15:18:38.800Z
Comments.Text: okay @jitendra-fuzion, I think that should be helpful, will try ,can you answer this if possible :- https://civicrm.stackexchange.com/questions/28241/how-to-create-a-custom-filter-in-civicrm-manage-event-page?noredirect=1&lq=1
Comments.UserDisplayName: harshal
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-30T02:47:59.577Z
Comments.Text: Hi @jitendra-fuzion, I tried but I get an empty array when I try to print $_POST under hook_civicrm_pageRun but I see values in the session under $_SESSION['CiviCRM']['_CRM_Event_Form_SearchEvent_5dae5c805b43bf196335d884396c9c3b_9134_container']['values']['SearchEvent']['event_status']
Comments.UserDisplayName: harshal
Tags: <civievent><hooks>
Title: How to alter a query in hook_civicrm_pageRun based on a custom filter provided?
ThreadText: # How to alter a query in hook_civicrm_pageRun based on a custom filter provided?
  
  (Asked by: username_0 on 2019-01-29)
  
  I want to alter the query run in the hook\_pageRun(&$page) under Manage   
  Events Page to alter the (event list) results shown here. I can alter  
   the rows from hook\_civicrm\_pageRun , but I want to make changes   
  in that row based on the values entered in the   
  custom filter (e.g. default filter available is Event Type)
    
  Suppose I change the Event Status(custom filter) , I want to change the results of $row   
  based on that filter.
  
  **Tags:** civievent, hooks
  
  > **Comments:**
  > **username_1**: Don't you get the filled values in $_POST?  
  > **username_0**: okay @jitendra-fuzion, I think that should be helpful, will try ,can you answer this if possible :- https://civicrm.stackexchange.com/questions/28241/how-to-create-a-custom-filter-in-civicrm-manage-event-page?noredirect=1&lq=1  
  > **username_0**: Hi @jitendra-fuzion, I tried but I get an empty array when I try to print $_POST under hook_civicrm_pageRun but I see values in the session under $_SESSION['CiviCRM']['_CRM_Event_Form_SearchEvent_5dae5c805b43bf196335d884396c9c3b_9134_container']['values']['SearchEvent']['event_status']  
  
  ---
  
  ## 0 answers
  
  