@@ -38,6 +38,7 @@ |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Return a setting for the account |
41 | + * @param string $name |
|
41 | 42 | */ |
42 | 43 | public function getAccountSetting($name) { |
43 | 44 | return !empty($this->account[$name]) ? $this->account[$name] : NULL; |
@@ -220,6 +220,7 @@ |
||
220 | 220 | |
221 | 221 | /** |
222 | 222 | * Helper function, wrapper for encrypt function. |
223 | + * @param boolean $input |
|
223 | 224 | */ |
224 | 225 | function _commerce_psi_encrypt($input) { |
225 | 226 | return encrypt($input); |
@@ -111,6 +111,7 @@ |
||
111 | 111 | * |
112 | 112 | * @param $submission_fields Array |
113 | 113 | * Values from the submitted form |
114 | + * @param string[] $form_parents |
|
114 | 115 | */ |
115 | 116 | function _fundraiser_commerce_credit_card_validate($submission_fields, $form_parents) { |
116 | 117 | $prefix = implode('][', $form_parents) . ']['; |
@@ -329,6 +329,7 @@ discard block |
||
329 | 329 | |
330 | 330 | /** |
331 | 331 | * Helper function, given a donation form and field list make the listed fields not required. |
332 | + * @param string[] $fields |
|
332 | 333 | */ |
333 | 334 | function _fundraiser_offline_form_not_required(&$form, $fields) { |
334 | 335 | foreach ($fields as $field_name) { |
@@ -340,6 +341,7 @@ discard block |
||
340 | 341 | |
341 | 342 | /** |
342 | 343 | * Helper function, given a donation form and field list make the listed fields not required. |
344 | + * @param string[] $fields |
|
343 | 345 | */ |
344 | 346 | function _fundraiser_offline_form_not_hidden(&$form, $fields) { |
345 | 347 | foreach ($fields as $field_name) { |
@@ -351,6 +353,7 @@ discard block |
||
351 | 353 | |
352 | 354 | /** |
353 | 355 | * Helper function, given a donation form and field list make the listed fields not validate. |
356 | + * @param string[] $fields |
|
354 | 357 | */ |
355 | 358 | function _fundraiser_offline_form_not_validate(&$form, $fields) { |
356 | 359 | foreach ($fields as $field_name) { |
@@ -483,6 +486,7 @@ discard block |
||
483 | 486 | |
484 | 487 | /** |
485 | 488 | * DB function for fundraiser_offline_donation. |
489 | + * @param string $string |
|
486 | 490 | */ |
487 | 491 | function _fundraiser_offline_get_by_title($string) { |
488 | 492 | $results = db_query('SELECT * FROM {fundraiser_offline} o ' . |
@@ -1587,7 +1587,7 @@ |
||
1587 | 1587 | * Determines if the sustainer key file exists in the file system. |
1588 | 1588 | * |
1589 | 1589 | * @return |
1590 | - * The filename of of the sustainer key file or FALSE if it doesn't |
|
1590 | + string|false The filename of of the sustainer key file or FALSE if it doesn't |
|
1591 | 1591 | * exist. |
1592 | 1592 | */ |
1593 | 1593 | function fundraiser_sustainers_sustainer_key_file_exists() { |
@@ -128,7 +128,6 @@ |
||
128 | 128 | /** |
129 | 129 | * Generate the order object from the sid |
130 | 130 | * @param integer $sid |
131 | - * @param object $order |
|
132 | 131 | */ |
133 | 132 | function _fundraiser_upsell_get_order($sid = NULL) { |
134 | 133 | // Return empty object if no sid |
@@ -502,6 +502,7 @@ discard block |
||
502 | 502 | |
503 | 503 | /** |
504 | 504 | * Implements hook_fundraiser_get_form_field(). |
505 | + * @param string $field_key |
|
505 | 506 | */ |
506 | 507 | function fundraiser_webform_fundraiser_get_form_field($form, $field_key) { |
507 | 508 | // Walks a given form looking for the given key. Returns it when found. |
@@ -790,6 +791,7 @@ discard block |
||
790 | 791 | |
791 | 792 | /** |
792 | 793 | * Handles recursion for fundraiser_sustainers_fundraiser_field_info_alter(). |
794 | + * @param string[] $map |
|
793 | 795 | */ |
794 | 796 | function _fundraiser_webform_fundraiser_field_info_alter($field_key, $field, $map) { |
795 | 797 | if (in_array($field_key, $map)) { |
@@ -1087,6 +1089,7 @@ discard block |
||
1087 | 1089 | |
1088 | 1090 | /** |
1089 | 1091 | * DB function, given a nid and field key, get and *unserialize* the extra field from webform component. |
1092 | + * @param string $form_key |
|
1090 | 1093 | */ |
1091 | 1094 | function _fundraiser_webform_get_extra_by_key($nid, $form_key) { |
1092 | 1095 | $result = _fundraiser_webform_get_component_by_nid_key($nid, $form_key); |
@@ -1117,6 +1120,7 @@ discard block |
||
1117 | 1120 | |
1118 | 1121 | /** |
1119 | 1122 | * DB function, get webform component form elements. |
1123 | + * @param string[] $form_keys |
|
1120 | 1124 | */ |
1121 | 1125 | function _fundraiser_webform_get_components_by_keys($nid, $form_keys) { |
1122 | 1126 | if (!is_array($form_keys)) { |
@@ -57,6 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Helper function for re-ordering arrays (needed by theme_registry_alter) |
60 | + * @param string $element |
|
60 | 61 | */ |
61 | 62 | function _page_wrappers_insert_after_first_element(&$a, $element) { |
62 | 63 | if (is_array($a)) { |
@@ -505,6 +506,7 @@ discard block |
||
505 | 506 | * |
506 | 507 | * @param $wrapper Array |
507 | 508 | * Values to populate the fields |
509 | + * @param string $key |
|
508 | 510 | */ |
509 | 511 | function _page_wrappers_assignment_fields($key, $config = array(), $wrappers, $rulesets, $weight = 0, $size = 10, $parent = 'page_wrappers') { |
510 | 512 | $fields = array( |
@@ -442,7 +442,7 @@ |
||
442 | 442 | * @param string $op |
443 | 443 | * Salesforce operation to be performed. |
444 | 444 | * |
445 | - * @return bool |
|
445 | + * @return false|null |
|
446 | 446 | * TRUE if the item was successfully queued. FALSE if the item could not be |
447 | 447 | * queued, or if the item was not supposed to be queued. |
448 | 448 | */ |