Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Output of var_dump($form)
- array(28) {
- ["#parents"]=>
- array(0) {
- }
- ["#method"]=>
- string(4) "post"
- ["#tree"]=>
- bool(false)
- ["#required"]=>
- bool(false)
- ["#attributes"]=>
- array(0) {
- }
- ["#after_build"]=>
- array(1) {
- [0]=>
- string(20) "wysiwyg_process_form"
- }
- ["#post"]=>
- array(0) {
- }
- ["#theme"]=>
- string(13) "finder_form_5"
- ["#after_build_done"]=>
- bool(true)
- ["#defaults_loaded"]=>
- bool(true)
- ["#processed"]=>
- bool(false)
- ["#description"]=>
- NULL
- ["#id"]=>
- string(13) "finder-form-5"
- ["#parameters"]=>
- array(3) {
- [0]=>
- string(13) "finder_form_5"
- [1]=>
- array(3) {
- ["storage"]=>
- NULL
- ["submitted"]=>
- bool(false)
- ["post"]=>
- array(0) {
- }
- }
- [2]=>
- object(stdClass)#365 (14) {
- ["finder_id"]=>
- string(1) "5"
- ["base"]=>
- string(5) "views"
- ["title"]=>
- string(13) "Find a Member"
- ["description"]=>
- string(0) ""
- ["path"]=>
- string(14) "finder/surname"
- ["block"]=>
- string(1) "1"
- ["settings"]=>
- array(4) {
- ["form_on_page"]=>
- int(1)
- ["form"]=>
- array(6) {
- ["prefix"]=>
- string(0) ""
- ["prefix_format"]=>
- string(1) "1"
- ["suffix"]=>
- string(0) ""
- ["suffix_format"]=>
- string(1) "1"
- ["button_text"]=>
- string(2) "Go"
- ["go_text"]=>
- string(2) "Go"
- }
- ["advanced"]=>
- array(17) {
- ["no_results"]=>
- array(1) {
- ["no_results"]=>
- string(31) "There are no results to display"
- }
- ["filter"]=>
- int(0)
- ["submission"]=>
- int(1)
- ["ahah"]=>
- int(0)
- ["ahah_effect"]=>
- string(4) "none"
- ["ahah_remote"]=>
- int(0)
- ["element_combination"]=>
- string(1) "2"
- ["pager"]=>
- string(2) "10"
- ["goto"]=>
- string(0) ""
- ["hide_args"]=>
- int(0)
- ["arg_sep"]=>
- string(1) ","
- ["empty_symbol"]=>
- string(0) ""
- ["show_links"]=>
- int(0)
- ["show_admin_links"]=>
- int(1)
- ["cache_finder_find"]=>
- string(1) "0"
- ["search"]=>
- string(1) "0"
- ["search_tab"]=>
- string(4) "node"
- }
- ["views"]=>
- array(4) {
- ["view"]=>
- string(7) "profile"
- ["displays"]=>
- array(2) {
- ["query"]=>
- string(7) "block_7"
- ["output"]=>
- string(7) "block_7"
- }
- ["results"]=>
- string(1) "0"
- ["views_args"]=>
- array(2) {
- ["args"]=>
- string(0) ""
- ["delimiter"]=>
- string(1) "/"
- }
- }
- }
- ["elements"]=>
- array(2) {
- [6]=>
- object(stdClass)#333 (7) {
- ["finder_element_id"]=>
- string(1) "6"
- ["finder_id"]=>
- string(1) "5"
- ["element"]=>
- string(4) "text"
- ["title"]=>
- string(10) "By Surname"
- ["weight"]=>
- string(1) "0"
- ["settings"]=>
- array(3) {
- ["form"]=>
- array(13) {
- ["description"]=>
- string(0) ""
- ["prefix"]=>
- string(0) ""
- ["prefix_format"]=>
- string(1) "1"
- ["suffix"]=>
- string(0) ""
- ["suffix_format"]=>
- string(1) "1"
- ["default_value"]=>
- string(0) ""
- ["required"]=>
- int(0)
- ["field_prefix"]=>
- string(0) ""
- ["field_suffix"]=>
- string(0) ""
- ["maxlength"]=>
- string(0) ""
- ["minlength"]=>
- string(0) ""
- ["size"]=>
- string(2) "20"
- ["rows"]=>
- string(1) "0"
- }
- ["choices"]=>
- array(3) {
- ["field"]=>
- array(1) {
- ["node_data_field_profile_surname.field_profile_surname_value"]=>
- string(59) "node_data_field_profile_surname.field_profile_surname_value"
- }
- ["displays"]=>
- array(1) {
- ["query"]=>
- string(7) "block_7"
- }
- ["views"]=>
- array(2) {
- ["args"]=>
- string(7) "$finder"
- ["delimiter"]=>
- string(1) "/"
- }
- }
- ["advanced"]=>
- array(3) {
- ["delimit"]=>
- string(0) ""
- ["value_combination"]=>
- string(1) "0"
- ["match"]=>
- string(1) "c"
- }
- }
- ["element_handler"]=>
- array(2) {
- ["#title"]=>
- string(4) "Text"
- ["#module"]=>
- string(11) "finder_text"
- }
- }
- [0]=>
- object(stdClass)#350 (7) {
- ["finder_element_id"]=>
- string(1) "6"
- ["finder_id"]=>
- string(1) "5"
- ["element"]=>
- string(4) "text"
- ["title"]=>
- string(10) "By Surname"
- ["weight"]=>
- string(1) "0"
- ["settings"]=>
- array(3) {
- ["form"]=>
- array(13) {
- ["description"]=>
- string(0) ""
- ["prefix"]=>
- string(0) ""
- ["prefix_format"]=>
- string(1) "1"
- ["suffix"]=>
- string(0) ""
- ["suffix_format"]=>
- string(1) "1"
- ["default_value"]=>
- string(0) ""
- ["required"]=>
- int(0)
- ["field_prefix"]=>
- string(0) ""
- ["field_suffix"]=>
- string(0) ""
- ["maxlength"]=>
- string(0) ""
- ["minlength"]=>
- string(0) ""
- ["size"]=>
- string(2) "20"
- ["rows"]=>
- string(1) "0"
- }
- ["choices"]=>
- array(3) {
- ["field"]=>
- array(1) {
- ["node_data_field_profile_surname.field_profile_surname_value"]=>
- string(59) "node_data_field_profile_surname.field_profile_surname_value"
- }
- ["displays"]=>
- array(1) {
- ["query"]=>
- string(7) "block_7"
- }
- ["views"]=>
- array(2) {
- ["args"]=>
- string(7) "$finder"
- ["delimiter"]=>
- string(1) "/"
- }
- }
- ["advanced"]=>
- array(3) {
- ["delimit"]=>
- string(0) ""
- ["value_combination"]=>
- string(1) "0"
- ["match"]=>
- string(1) "c"
- }
- }
- ["element_handler"]=>
- array(2) {
- ["#title"]=>
- string(4) "Text"
- ["#module"]=>
- string(11) "finder_text"
- }
- }
- }
- ["elements_index"]=>
- array(1) {
- [6]=>
- int(0)
- }
- ["base_handler"]=>
- array(2) {
- ["#title"]=>
- string(12) "Views finder"
- ["#module"]=>
- string(12) "finder_views"
- }
- ["admin_links"]=>
- array(2) {
- ["finder/surname"]=>
- string(11) "View "Path""
- ["admin/build/finder/5/edit"]=>
- string(4) "Edit"
- }
- ["links"]=>
- array(0) {
- }
- ["finder_view_build_id"]=>
- string(22) "finder-block-5-wrapper"
- ["finder_view_build_display"]=>
- string(5) "block"
- }
- }
- ["#build_id"]=>
- string(37) "form-3b1e1f81b9e85532a912ed0f53995961"
- ["#submit"]=>
- array(2) {
- [0]=>
- string(18) "finder_form_submit"
- [1]=>
- string(27) "inline_messages_submit_form"
- }
- ["finder_form"]=>
- array(12) {
- ["#weight"]=>
- int(0)
- ["#prefix"]=>
- string(34) "<div class="finder-form finder-5">"
- ["#suffix"]=>
- string(6) "</div>"
- [6]=>
- array(27) {
- ["#title"]=>
- string(10) "By Surname"
- ["#weight"]=>
- string(1) "0"
- ["#description"]=>
- string(0) ""
- ["#prefix"]=>
- string(0) ""
- ["#suffix"]=>
- string(0) ""
- ["#default_value"]=>
- string(0) ""
- ["#required"]=>
- int(0)
- ["#executes_submit_callback"]=>
- bool(true)
- ["#type"]=>
- string(9) "textfield"
- ["#size"]=>
- string(2) "20"
- ["#element_validate"]=>
- array(1) {
- [0]=>
- string(35) "finder_text_finder_element_validate"
- }
- ["#post"]=>
- array(0) {
- }
- ["#programmed"]=>
- bool(false)
- ["#tree"]=>
- bool(false)
- ["#parents"]=>
- array(1) {
- [0]=>
- int(6)
- }
- ["#array_parents"]=>
- array(2) {
- [0]=>
- string(11) "finder_form"
- [1]=>
- int(6)
- }
- ["#processed"]=>
- bool(true)
- ["#attributes"]=>
- array(0) {
- }
- ["#input"]=>
- bool(true)
- ["#maxlength"]=>
- int(128)
- ["#autocomplete_path"]=>
- bool(false)
- ["#process"]=>
- array(1) {
- [0]=>
- string(16) "form_expand_ahah"
- }
- ["#name"]=>
- int(6)
- ["#id"]=>
- string(6) "edit-6"
- ["#value"]=>
- string(0) ""
- ["#defaults_loaded"]=>
- bool(true)
- ["#sorted"]=>
- bool(true)
- }
- ["submit"]=>
- array(20) {
- ["#type"]=>
- string(6) "submit"
- ["#name"]=>
- string(4) "find"
- ["#value"]=>
- string(2) "Go"
- ["#weight"]=>
- int(1000)
- ["#post"]=>
- array(0) {
- }
- ["#programmed"]=>
- bool(false)
- ["#tree"]=>
- bool(false)
- ["#parents"]=>
- array(1) {
- [0]=>
- string(6) "submit"
- }
- ["#array_parents"]=>
- array(2) {
- [0]=>
- string(11) "finder_form"
- [1]=>
- string(6) "submit"
- }
- ["#processed"]=>
- bool(true)
- ["#description"]=>
- NULL
- ["#attributes"]=>
- array(0) {
- }
- ["#required"]=>
- bool(false)
- ["#input"]=>
- bool(true)
- ["#button_type"]=>
- string(6) "submit"
- ["#executes_submit_callback"]=>
- bool(true)
- ["#process"]=>
- array(1) {
- [0]=>
- string(16) "form_expand_ahah"
- }
- ["#id"]=>
- string(13) "edit-submit-1"
- ["#defaults_loaded"]=>
- bool(true)
- ["#sorted"]=>
- bool(true)
- }
- ["#post"]=>
- array(0) {
- }
- ["#programmed"]=>
- bool(false)
- ["#tree"]=>
- bool(false)
- ["#parents"]=>
- array(1) {
- [0]=>
- string(11) "finder_form"
- }
- ["#array_parents"]=>
- array(1) {
- [0]=>
- string(11) "finder_form"
- }
- ["#processed"]=>
- bool(false)
- ["#defaults_loaded"]=>
- bool(true)
- }
- ["#action"]=>
- string(15) "/finder/surname"
- ["#type"]=>
- string(6) "markup"
- ["#programmed"]=>
- bool(false)
- ["finder_id"]=>
- array(17) {
- ["#type"]=>
- string(5) "value"
- ["#value"]=>
- string(1) "5"
- ["#post"]=>
- array(0) {
- }
- ["#programmed"]=>
- bool(false)
- ["#tree"]=>
- bool(false)
- ["#parents"]=>
- array(1) {
- [0]=>
- string(9) "finder_id"
- }
- ["#array_parents"]=>
- array(1) {
- [0]=>
- string(9) "finder_id"
- }
- ["#weight"]=>
- int(0)
- ["#processed"]=>
- bool(false)
- ["#description"]=>
- NULL
- ["#attributes"]=>
- array(0) {
- }
- ["#required"]=>
- bool(false)
- ["#input"]=>
- bool(true)
- ["#name"]=>
- string(9) "finder_id"
- ["#id"]=>
- string(14) "edit-finder-id"
- ["#defaults_loaded"]=>
- bool(true)
- ["#sorted"]=>
- bool(true)
- }
- ["#token"]=>
- string(13) "finder_form_5"
- ["form_build_id"]=>
- array(18) {
- ["#type"]=>
- string(6) "hidden"
- ["#value"]=>
- string(37) "form-3b1e1f81b9e85532a912ed0f53995961"
- ["#id"]=>
- string(37) "form-3b1e1f81b9e85532a912ed0f53995961"
- ["#name"]=>
- string(13) "form_build_id"
- ["#post"]=>
- array(0) {
- }
- ["#programmed"]=>
- bool(false)
- ["#tree"]=>
- bool(false)
- ["#parents"]=>
- array(1) {
- [0]=>
- string(13) "form_build_id"
- }
- ["#array_parents"]=>
- array(1) {
- [0]=>
- string(13) "form_build_id"
- }
- ["#weight"]=>
- float(0.002)
- ["#processed"]=>
- bool(true)
- ["#description"]=>
- NULL
- ["#attributes"]=>
- array(0) {
- }
- ["#required"]=>
- bool(false)
- ["#input"]=>
- bool(true)
- ["#process"]=>
- array(1) {
- [0]=>
- string(16) "form_expand_ahah"
- }
- ["#defaults_loaded"]=>
- bool(true)
- ["#sorted"]=>
- bool(true)
- }
- ["form_token"]=>
- array(18) {
- ["#id"]=>
- string(29) "edit-finder-form-5-form-token"
- ["#type"]=>
- string(5) "token"
- ["#default_value"]=>
- string(32) "057a02c919143d472686654e6b6d4388"
- ["#post"]=>
- array(0) {
- }
- ["#programmed"]=>
- bool(false)
- ["#tree"]=>
- bool(false)
- ["#parents"]=>
- array(1) {
- [0]=>
- string(10) "form_token"
- }
- ["#array_parents"]=>
- array(1) {
- [0]=>
- string(10) "form_token"
- }
- ["#weight"]=>
- float(0.003)
- ["#processed"]=>
- bool(false)
- ["#description"]=>
- NULL
- ["#attributes"]=>
- array(0) {
- }
- ["#required"]=>
- bool(false)
- ["#input"]=>
- bool(true)
- ["#name"]=>
- string(10) "form_token"
- ["#value"]=>
- string(32) "057a02c919143d472686654e6b6d4388"
- ["#defaults_loaded"]=>
- bool(true)
- ["#sorted"]=>
- bool(true)
- }
- ["form_id"]=>
- array(18) {
- ["#type"]=>
- string(6) "hidden"
- ["#value"]=>
- string(13) "finder_form_5"
- ["#id"]=>
- string(18) "edit-finder-form-5"
- ["#post"]=>
- array(0) {
- }
- ["#programmed"]=>
- bool(false)
- ["#tree"]=>
- bool(false)
- ["#parents"]=>
- array(1) {
- [0]=>
- string(7) "form_id"
- }
- ["#array_parents"]=>
- array(1) {
- [0]=>
- string(7) "form_id"
- }
- ["#weight"]=>
- float(0.004)
- ["#processed"]=>
- bool(true)
- ["#description"]=>
- NULL
- ["#attributes"]=>
- array(0) {
- }
- ["#required"]=>
- bool(false)
- ["#input"]=>
- bool(true)
- ["#process"]=>
- array(1) {
- [0]=>
- string(16) "form_expand_ahah"
- }
- ["#name"]=>
- string(7) "form_id"
- ["#defaults_loaded"]=>
- bool(true)
- ["#sorted"]=>
- bool(true)
- }
- ["#title"]=>
- NULL
- ["#theme_used"]=>
- bool(true)
- ["#value"]=>
- string(0) ""
- }
- ## Hook overwrites in template.php
- function geh_theme() {
- $hooks['finder_form_5'] = array(
- 'arguments' => array('form' => NULL),
- );
- return $hooks;
- }
- function geh_finder_form_5($form) {
- $form['submit'] = array(
- '#id' => 'edit-submit-1',
- '#type' => 'image_button',
- '#title' => t('Go'),
- '#value' => t('Go'),
- '#src' => path_to_theme().'/images/btn-member-search.png',
- '#name' => t('find'),
- '#weight' => $form['submit'],
- );
- return drupal_render($form);
- }
Add Comment
Please, Sign In to add comment