@@ -41,7 +41,6 @@ discard block |
||
41 | 41 | * |
42 | 42 | * @see GVCommon::get_forms() |
43 | 43 | * @access public |
44 | - * @param mixed $form_id |
|
45 | 44 | * @return array (id, title) |
46 | 45 | */ |
47 | 46 | function gravityview_get_forms() { |
@@ -53,7 +52,7 @@ discard block |
||
53 | 52 | * |
54 | 53 | * @see GVCommon::get_form_fields() |
55 | 54 | * @access public |
56 | - * @param string|array $form_id (default: '') or $form object |
|
55 | + * @param string|array $form (default: '') or $form object |
|
57 | 56 | * @return array |
58 | 57 | */ |
59 | 58 | function gravityview_get_form_fields( $form = '', $add_default_properties = false, $include_parent_field = true ) { |
@@ -91,6 +90,7 @@ discard block |
||
91 | 90 | * @param int|array $form_ids The ID of the form or an array IDs of the Forms. Zero for all forms. |
92 | 91 | * @param mixed $passed_criteria (default: null) |
93 | 92 | * @param mixed &$total (default: null) |
93 | + * @param integer $total |
|
94 | 94 | * @return mixed False: Error fetching entries. Array: Multi-dimensional array of Gravity Forms entry arrays |
95 | 95 | */ |
96 | 96 | function gravityview_get_entries( $form_ids = null, $passed_criteria = null, &$total = null ) { |
@@ -103,7 +103,6 @@ discard block |
||
103 | 103 | * Since 1.4, supports custom entry slugs. The way that GravityView fetches an entry based on the custom slug is by searching `gravityview_unique_id` meta. The `$entry_slug` is fetched by getting the current query var set by `is_single_entry()` |
104 | 104 | * |
105 | 105 | * @access public |
106 | - * @param mixed $entry_id |
|
107 | 106 | * @param boolean $force_allow_ids Force the get_entry() method to allow passed entry IDs, even if the `gravityview_custom_entry_slug_allow_id` filter returns false. |
108 | 107 | * @param boolean $check_entry_display Check whether the entry is visible for the current View configuration. Default: true {@since 1.14} |
109 | 108 | * @return array|boolean |
@@ -177,7 +176,7 @@ discard block |
||
177 | 176 | * |
178 | 177 | * @param int $view_id ID of the View you want the form of |
179 | 178 | * |
180 | - * @return int |
|
179 | + * @return string |
|
181 | 180 | */ |
182 | 181 | function gravityview_get_form_id( $view_id ) { |
183 | 182 | return GVCommon::get_meta_form_id( $view_id ); |
@@ -188,7 +187,6 @@ discard block |
||
188 | 187 | * |
189 | 188 | * @see GravityView_Template::template_id |
190 | 189 | * |
191 | - * @param int $view_id The ID of the View to get the layout of |
|
192 | 190 | * |
193 | 191 | * @return string GravityView_Template::template_id value. Empty string if not. |
194 | 192 | */ |
@@ -167,7 +167,6 @@ discard block |
||
167 | 167 | * Returns the list of available forms |
168 | 168 | * |
169 | 169 | * @access public |
170 | - * @param mixed $form_id |
|
171 | 170 | * @return array Empty array if GFAPI isn't available or no forms. Otherwise, associative array with id, title keys |
172 | 171 | */ |
173 | 172 | public static function get_forms() { |
@@ -188,7 +187,7 @@ discard block |
||
188 | 187 | * Return array of fields' id and label, for a given Form ID |
189 | 188 | * |
190 | 189 | * @access public |
191 | - * @param string|array $form_id (default: '') or $form object |
|
190 | + * @param string|array $form (default: '') or $form object |
|
192 | 191 | * @return array |
193 | 192 | */ |
194 | 193 | public static function get_form_fields( $form = '', $add_default_properties = false, $include_parent_field = true ) { |
@@ -873,7 +873,7 @@ discard block |
||
873 | 873 | /** |
874 | 874 | * Get the label for a search form field |
875 | 875 | * @param array $field Field setting as sent by the GV configuration - has `field`, `input` (input type), and `label` keys |
876 | - * @param array $form_field Form field data, as fetched by `gravityview_get_field()` |
|
876 | + * @param GF_Field|null $form_field Form field data, as fetched by `gravityview_get_field()` |
|
877 | 877 | * @return string Label for the search form |
878 | 878 | */ |
879 | 879 | private static function get_field_label( $field, $form_field = array() ) { |
@@ -1053,7 +1053,7 @@ discard block |
||
1053 | 1053 | /** |
1054 | 1054 | * Modify the array passed to wp_localize_script() |
1055 | 1055 | * |
1056 | - * @param array $js_localization The data padded to the Javascript file |
|
1056 | + * @param array $localizations The data padded to the Javascript file |
|
1057 | 1057 | * @param array $view_data View data array with View settings |
1058 | 1058 | * |
1059 | 1059 | * @return array |