X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FForm%2FSearch.php;h=cd650775fa541bc56cbc31f61ad6bc82abdad951;hb=a13f3d8c01e114b11c381b6ac3e64becae9380b1;hp=9b9cbc0f7eea6948d29c3e2238c25e342d634455;hpb=64c2aeba7eea943c799caafed1c82e4f383a1e2d;p=civicrm-core.git diff --git a/CRM/Core/Form/Search.php b/CRM/Core/Form/Search.php index 9b9cbc0f7e..cd650775fa 100644 --- a/CRM/Core/Form/Search.php +++ b/CRM/Core/Form/Search.php @@ -1,7 +1,7 @@ ajaxPopupsEnabled) { @@ -104,7 +98,7 @@ class CRM_Core_Form_Search extends CRM_Core_Form { /** * Add checkboxes for each row plus a master checkbox */ - function addRowSelectors($rows) { + public function addRowSelectors($rows) { $this->addElement('checkbox', 'toggleSelect', NULL, NULL, array('class' => 'select-rows')); foreach ($rows as $row) { $this->addElement('checkbox', $row['checkbox'], NULL, NULL, array('class' => 'select-row')); @@ -115,7 +109,7 @@ class CRM_Core_Form_Search extends CRM_Core_Form { * Add actions menu to search results form * @param $tasks */ - function addTaskMenu($tasks) { + public function addTaskMenu($tasks) { if (is_array($tasks) && !empty($tasks)) { $tasks = array('' => ts('Actions')) + $tasks; $this->add('select', 'task', NULL, $tasks, FALSE, array('class' => 'crm-select2 crm-action-menu huge crm-search-result-actions'));