settings. * * @param $finder * The finder object. * * @see hook_form_FORM_ID_alter() */ function hook_form_finder_admin_edit_alter(&$form, &$form_state, $finder) { // no example code } /** * Alter the finder delete confirmation form. * * This is usually not necessary. * * @param $finder * The finder object. * * @see hook_form_FORM_ID_alter() */ function hook_form_finder_admin_delete_alter(&$form, &$form_state, $finder) { // no example code } /** * Alter the form to configure a finder element. * * Useful for base and element handler modules to add additional options and * validation. Any fields added under $form['settings'] will be automatically * saved by Finder and later accessible at $element->settings. * * @param $finder * The finder object. * @param $finder_element_id * The finder element ID. * * @see hook_form_FORM_ID_alter() */ function hook_form_finder_admin_element_edit_alter(&$form, &$form_state, $finder, $finder_element_id) { // no example code } /** * Alter the form to configure a finder element delete confirmation form. * * This is usually not necessary. * * @param $finder * The finder object. * @param $finder_element_id * The finder element ID. * * @see hook_form_FORM_ID_alter() */ function hook_form_finder_admin_element_delete_alter(&$form, &$form_state, $finder, $finder_element_id) { // no example code } /** * Alter the keywords array used in finder_find(). * * @param &$keywords * An array keyed by finder_element_id, where the values are any * str/num/bool/null or an array of such values to be OR'd together. * @param $finder * The finder object. * @param $finder_element_id * If $mode is 'choices', this is the finder element id to get choices for. * @param $mode * 'choices' or 'results' depending on what we are fetching. * @param $match * The match method, see finder_match_operator(). * @param $pager * Used to limit choices or results per page. */ function hook_finder_find_keywords_alter(&$keywords, $finder, $finder_element_id, $mode, $match, $pager) { // no example code } /** * Alter the choices or results returned by finder_find(). * * @param &$options * The array of choices or results. * @param $finder * The finder object. * @param $finder_element_id * If $mode is 'choices', this is the finder element id to get choices for. * @param &$keywords * An array keyed by finder_element_id, where the values are any * str/num/bool/null or an array of such values to be OR'd together. * @param $mode * 'choices' or 'results' depending on what we are fetching. * @param $match * The match method, see finder_match_operator(). * @param $pager * Used to limit choices or results per page. */ function hook_finder_find_options_alter(&$options, $finder, $finder_element_id, $keywords, $mode, $match, $pager) { // no example code } /** * Alter the query array before finder_query() builds it into SQL. * * @param &$query * The query array. */ function hook_finder_query_alter(&$query) { // no example code } /** * Alter the query array before finder_query() executes the SQL. * * @param &$query * The query array. */ function hook_finder_query_built_alter(&$query) { // no example code } /** * Alter the operators array returned by finder_match_operator(). * * @param &$operators * The operators array. */ function hook_finder_match_operators_alter(&$operators) { // no example code } /** * Alter the form state before it is set by finder_form_state(). * * This is a chance to undo any changes made by the finder form submit * function. If you set $form_state['storage']['finished'] to FALSE here then * it will prevent any automatic redirects and allow you to make multistep * forms. * * @param &$form_state * The Forms API form state. * @param $finder_id * The finder's ID. */ function hook_finder_form_state_alter(&$form_state, $finder_id) { // no example code } /** * Alter the result or do a custom redirect before redirecting to first result. * * @param &$result * The result array. * @param $finder * The finder object. */ function hook_finder_goto_alter(&$result, $finder) { // no example code } /** * Redirect to the first result. * * The base handler module is expected to redirect the user based on the * $result by implementing this function. * * @param $finder * The finder object. * @param $result * The result array. */ function hook_finder_goto($finder, $result) { // no example code } /** * Alter the default output of an export string. * * @param &$out * The fully assembled default string. * @param $tab * The tab variable from finder_export. * @param $key * The key variable from finder_export. * @param $value * The value variable from finder_export. * @param $iteration * The iteration variable from finder_export. */ function hook_finder_export_alter(&$out, $tab, $key, $value, $iteration) { $out = $tab ." '". $key ."' => ". finder_export($value, $iteration) .",\n"; }