@@ -258,6 +258,11 @@ discard block |
||
258 | 258 | $this->Data[$SourceID]["Connections"][] = $TargetID; |
259 | 259 | } |
260 | 260 | /* Get the median linked nodes position */ |
261 | + |
|
262 | + /** |
|
263 | + * @param double $X |
|
264 | + * @param double $Y |
|
265 | + */ |
|
261 | 266 | function getMedianOffset($Key,$X,$Y) |
262 | 267 | { |
263 | 268 | $Cpt = 1; |
@@ -277,6 +282,10 @@ discard block |
||
277 | 282 | } |
278 | 283 | |
279 | 284 | /* Return the ID of the attached partner with the biggest weight */ |
285 | + |
|
286 | + /** |
|
287 | + * @return double |
|
288 | + */ |
|
280 | 289 | function getBiggestPartner($Key) |
281 | 290 | { |
282 | 291 | if ( !isset($this->Data[$Key]["Connections"]) ) { return(""); } |
@@ -168,6 +168,7 @@ discard block |
||
168 | 168 | /** |
169 | 169 | * Implementation of hook_node_view(); add custom actions when a node |
170 | 170 | * is viewed (forward compatible to Drupal 7) |
171 | + * @param string $view_mode |
|
171 | 172 | */ |
172 | 173 | function boinctranslate_node_view($node, $view_mode, $langcode) { |
173 | 174 | switch($node->type) { |
@@ -706,6 +707,7 @@ discard block |
||
706 | 707 | |
707 | 708 | /** |
708 | 709 | * |
710 | + * @param string $type |
|
709 | 711 | */ |
710 | 712 | function boinctranslate_export_po_generate($language = NULL, $strings = array(), $header = NULL, $type = NULL) { |
711 | 713 | |
@@ -1060,6 +1062,7 @@ discard block |
||
1060 | 1062 | |
1061 | 1063 | /** |
1062 | 1064 | * |
1065 | + * @param stdClass $file |
|
1063 | 1066 | */ |
1064 | 1067 | function _boinctranslate_locale_import_po($file, $langcode, $mode, $group = NULL) { |
1065 | 1068 | // Try to allocate enough time to parse and import the data. |
@@ -1106,6 +1109,7 @@ discard block |
||
1106 | 1109 | |
1107 | 1110 | /** |
1108 | 1111 | * |
1112 | + * @param string $op |
|
1109 | 1113 | */ |
1110 | 1114 | function _boinctranslate_locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = 'default') { |
1111 | 1115 | |
@@ -1449,6 +1453,7 @@ discard block |
||
1449 | 1453 | /** |
1450 | 1454 | * Modify the _locale_import_one_string_db() function so that it does not add |
1451 | 1455 | * translation strings that do not exist on the site |
1456 | + * @param string $textgroup |
|
1452 | 1457 | */ |
1453 | 1458 | function _boinctranslate_locale_import_one_string_db(&$report, $langcode, $source, $translation, $textgroup, $location, $mode, $plid = NULL, $plural = NULL) { |
1454 | 1459 | $lid = db_result(db_query("SELECT lid FROM {locales_source} WHERE location = '%s' AND source = '%s' AND textgroup = '%s'", $location, $source, $textgroup)); |
@@ -26,6 +26,8 @@ discard block |
||
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Get an image object from a given file and cck field |
29 | + * @param string $field_name |
|
30 | + * @param string $content_type |
|
29 | 31 | */ |
30 | 32 | function get_cck_image_object($image_path, $field_name, $content_type, $ignore_resolution = FALSE) { |
31 | 33 | $field = content_fields($field_name, $content_type); |
@@ -237,6 +239,7 @@ discard block |
||
237 | 239 | /** |
238 | 240 | * Include BOINC code |
239 | 241 | * The path from the BOINC html root must be included (e.g. user/file.php) |
242 | + * @param string $file |
|
240 | 243 | */ |
241 | 244 | function include_boinc($file) { |
242 | 245 | if ($include_dir = boinc_get_path()) { |
@@ -252,6 +255,7 @@ discard block |
||
252 | 255 | |
253 | 256 | /** |
254 | 257 | * Get the BOINC include path |
258 | + * @return string |
|
255 | 259 | */ |
256 | 260 | function boinc_get_path($type = 'root') { |
257 | 261 | $dir = "boinc_{$type}_dir"; |
@@ -13,6 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | /** |
15 | 15 | * The structure of the general preferences form |
16 | + * @param string $prefs_preset |
|
16 | 17 | */ |
17 | 18 | function boincwork_generalprefs_form(&$form_state, $venue, $prefs_preset = null, $advanced = FALSE) { |
18 | 19 | $form = array(); |
@@ -754,6 +755,7 @@ discard block |
||
754 | 755 | |
755 | 756 | /** |
756 | 757 | * Perform the database updates to merge the old host into the new host |
758 | + * @param string $message |
|
757 | 759 | */ |
758 | 760 | function boincwork_host_merge($old_host, $new_host, &$message = NULL) { |
759 | 761 | // Decay the average credit of the two hosts |
@@ -977,6 +977,7 @@ discard block |
||
977 | 977 | |
978 | 978 | /** |
979 | 979 | * Format a number to be displayed using a maximum number of digits |
980 | + * @param double $number |
|
980 | 981 | */ |
981 | 982 | function boincwork_format_stats($number, $max_digits = 4) { |
982 | 983 | $suffix = array( |
@@ -1187,6 +1188,9 @@ discard block |
||
1187 | 1188 | // xml_to_array(): Convert an XML DOM object to array format |
1188 | 1189 | //------------------------------------------------------------------------------------------------ |
1189 | 1190 | |
1191 | + /** |
|
1192 | + * @param DOMDocument $xml |
|
1193 | + */ |
|
1190 | 1194 | function xml_to_array($xml) { |
1191 | 1195 | $node = $xml->firstChild; //$xml->first_child(); |
1192 | 1196 | $result = ''; |
@@ -1269,6 +1273,7 @@ discard block |
||
1269 | 1273 | |
1270 | 1274 | /** |
1271 | 1275 | * Determine output for host list views when no hosts are found. |
1276 | + * @param string $context |
|
1272 | 1277 | */ |
1273 | 1278 | function boincwork_views_host_list_empty_text($context = NULL) { |
1274 | 1279 |
@@ -1,6 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // $Id: bbcode-filter.inc,v 1.66 2008/11/30 08:50:08 naudefj Exp $ |
3 | 3 | |
4 | +/** |
|
5 | + * @param string $body |
|
6 | + */ |
|
4 | 7 | function _bbcode_filter_process(&$body, $format = -1) { |
5 | 8 | |
6 | 9 | $quote_text = t('Quote:'); |
@@ -1234,6 +1234,8 @@ discard block |
||
1234 | 1234 | * |
1235 | 1235 | * For each operation, both this function and _content_field_invoke_default() are |
1236 | 1236 | * called so that the default database handling can occur. |
1237 | + * @param string $op |
|
1238 | + * @param boolean $page |
|
1237 | 1239 | */ |
1238 | 1240 | function _content_field_invoke($op, &$node, $teaser = NULL, $page = NULL) { |
1239 | 1241 | $type_name = is_string($node) ? $node : (is_array($node) ? $node['type'] : $node->type); |
@@ -1268,6 +1270,8 @@ discard block |
||
1268 | 1270 | |
1269 | 1271 | /** |
1270 | 1272 | * Invoke content.module's version of a field hook. |
1273 | + * @param string $op |
|
1274 | + * @param boolean $page |
|
1271 | 1275 | */ |
1272 | 1276 | function _content_field_invoke_default($op, &$node, $teaser = NULL, $page = NULL) { |
1273 | 1277 | $type_name = is_string($node) ? $node : (is_array($node) ? $node['type'] : $node->type); |
@@ -1746,6 +1750,7 @@ discard block |
||
1746 | 1750 | * Used for items entered by administrators, like field descriptions, |
1747 | 1751 | * allowed values, where some (mainly inline) mark-up may be desired |
1748 | 1752 | * (so check_plain() is not acceptable). |
1753 | + * @return string |
|
1749 | 1754 | */ |
1750 | 1755 | function content_filter_xss($string) { |
1751 | 1756 | return filter_xss($string, _content_filter_xss_allowed_tags()); |
@@ -1975,7 +1980,7 @@ discard block |
||
1975 | 1980 | * |
1976 | 1981 | * @param $name |
1977 | 1982 | * The name of the content type or content field |
1978 | - * @param $storage |
|
1983 | + * @param integer $storage |
|
1979 | 1984 | * CONTENT_DB_STORAGE_PER_FIELD or CONTENT_DB_STORAGE_PER_CONTENT_TYPE |
1980 | 1985 | * @return |
1981 | 1986 | * A string containing the generated name for the database table |
@@ -2109,7 +2114,7 @@ discard block |
||
2109 | 2114 | * @param $name |
2110 | 2115 | * Name of the index. |
2111 | 2116 | * @return |
2112 | - * TRUE if the table exists. Otherwise FALSE. |
|
2117 | + boolean TRUE if the table exists. Otherwise FALSE. |
|
2113 | 2118 | */ |
2114 | 2119 | function content_db_index_exists($table, $name) { |
2115 | 2120 | global $db_type; |
@@ -2139,9 +2144,9 @@ discard block |
||
2139 | 2144 | * with respect to a given operation. (currently used for field 'view', |
2140 | 2145 | * and widget 'default values' and 'multiple values') |
2141 | 2146 | * |
2142 | - * @param $entity |
|
2147 | + * @param string $entity |
|
2143 | 2148 | * 'field' or 'widget' |
2144 | - * @param $op |
|
2149 | + * @param string $op |
|
2145 | 2150 | * the name of the operation ('view', 'default value'...) |
2146 | 2151 | * @param $field |
2147 | 2152 | * The field array, including widget info. |
@@ -2169,9 +2174,9 @@ discard block |
||
2169 | 2174 | * |
2170 | 2175 | * Currently used for widgets and formatters 'multiple values'. |
2171 | 2176 | * |
2172 | - * @param $entity |
|
2177 | + * @param string $entity |
|
2173 | 2178 | * 'field', 'widget' or 'formatter' |
2174 | - * @param $op |
|
2179 | + * @param string $op |
|
2175 | 2180 | * the name of the operation ('default values'...) |
2176 | 2181 | * @param $object |
2177 | 2182 | * - if $entity is 'field' or 'widget': the field array, |
@@ -2232,7 +2237,7 @@ discard block |
||
2232 | 2237 | /** |
2233 | 2238 | * Determine whether the user has access to a given field. |
2234 | 2239 | * |
2235 | - * @param $op |
|
2240 | + * @param string $op |
|
2236 | 2241 | * The operation to be performed. Possible values: |
2237 | 2242 | * - "edit" |
2238 | 2243 | * - "view" |
@@ -2243,7 +2248,7 @@ discard block |
||
2243 | 2248 | * @param $node |
2244 | 2249 | * (optional) The node on which the operation is to be performed. |
2245 | 2250 | * @return |
2246 | - * TRUE if the operation is allowed; |
|
2251 | + boolean TRUE if the operation is allowed; |
|
2247 | 2252 | * FALSE if the operation is denied. |
2248 | 2253 | */ |
2249 | 2254 | function content_access($op, $field, $account = NULL, $node = NULL) { |
@@ -2324,7 +2329,7 @@ discard block |
||
2324 | 2329 | * hook_content_build_modes(). |
2325 | 2330 | * |
2326 | 2331 | * @return |
2327 | - * Whether or not content is to be added to $content in this context. |
|
2332 | + boolean Whether or not content is to be added to $content in this context. |
|
2328 | 2333 | * Uses the value of the 'Exclude' checkbox for this field |
2329 | 2334 | * as set on the Manage fields screen. |
2330 | 2335 | */ |
@@ -68,6 +68,7 @@ |
||
68 | 68 | * custom multiple value widgets but don't need any other special multiple |
69 | 69 | * values handling. This will call the field generation function |
70 | 70 | * a random number of times and compile the results into a node array. |
71 | + * @param string $function |
|
71 | 72 | */ |
72 | 73 | function content_devel_multiple($function, $node, $field) { |
73 | 74 | $node_field = array(); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * the form_state for the above form |
32 | 32 | * @param $field |
33 | 33 | * the field array to use to create the form element |
34 | - * @param $get_delta |
|
34 | + * @param integer $get_delta |
|
35 | 35 | * use to get only a specific delta value of a multiple value field, otherwise |
36 | 36 | * function will return the entire $field form element. |
37 | 37 | */ |