/** search_post() This function is how the data gets processed and displayed based on what was searched for. */ public function search_post() { // Variables $Groups = new GroupManager(); // Find data -> Push data foreach ($Groups->search() as $Group) { $this->data[] = array('id' => $Group->get('id'), 'name' => $Group->get('name'), 'description' => $Group->get('description'), 'count' => $Group->getHostCount()); } // Hook $this->HookManager->processEvent('GROUP_DATA', array('headerData' => &$this->headerData, 'data' => &$this->data, 'templates' => &$this->templates, 'attributes' => &$this->attributes)); // Output $this->render(); }