@@ -129,6 +129,10 @@ |
||
129 | 129 | } |
130 | 130 | |
131 | 131 | // Used by elysia_cron_should_run |
132 | +/** |
|
133 | + * @param integer $min |
|
134 | + * @param integer $max |
|
135 | + */ |
|
132 | 136 | function _cronDecodeRule($rule, $min, $max) { |
133 | 137 | if ($rule == '*') { |
134 | 138 | return range($min, $max); |
@@ -6,14 +6,23 @@ discard block |
||
6 | 6 | * D6 VERSION |
7 | 7 | ***************************************************************/ |
8 | 8 | |
9 | +/** |
|
10 | + * @param string $module |
|
11 | + */ |
|
9 | 12 | function _dcf_hook_boot($module) { |
10 | 13 | return true; |
11 | 14 | } |
12 | 15 | |
16 | +/** |
|
17 | + * @param string $module |
|
18 | + */ |
|
13 | 19 | function _dcf_hook_init($module) { |
14 | 20 | return true; |
15 | 21 | } |
16 | 22 | |
23 | +/** |
|
24 | + * @param boolean $maycache |
|
25 | + */ |
|
17 | 26 | function _dcf_hook_menu($items, $maycache) { |
18 | 27 | $new_items = array(); |
19 | 28 | foreach ($items as $k => $v) |
@@ -57,14 +66,24 @@ discard block |
||
57 | 66 | ); |
58 | 67 | } |
59 | 68 | |
69 | +/** |
|
70 | + * @param string $string |
|
71 | + */ |
|
60 | 72 | function _dcf_t($string) { |
61 | 73 | return t($string); |
62 | 74 | } |
63 | 75 | |
76 | +/** |
|
77 | + * @param string $type |
|
78 | + * @param string $message |
|
79 | + */ |
|
64 | 80 | function _dco_watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL) { // WARN d7 changed WATCHDOG_ costants |
65 | 81 | return watchdog($type, $message, $variables, $severity, $link); |
66 | 82 | } |
67 | 83 | |
84 | +/** |
|
85 | + * @param string $path |
|
86 | + */ |
|
68 | 87 | function _dco_l($text, $path, array $options = array()) { |
69 | 88 | return l($text, $path, $options); |
70 | 89 | } |
@@ -73,6 +92,9 @@ discard block |
||
73 | 92 | return array('form' => &$form, 'form_state' => &$form_state); |
74 | 93 | } |
75 | 94 | |
95 | +/** |
|
96 | + * @param string $name |
|
97 | + */ |
|
76 | 98 | function _dco_theme($name, $args) { |
77 | 99 | return call_user_func_array('theme', array_merge(array($name), array_values($args))); |
78 | 100 | } |
@@ -116,10 +138,16 @@ discard block |
||
116 | 138 | db_result(db_query("select min(weight) from {system} where name != '%s'", $except_module)); |
117 | 139 | } |
118 | 140 | |
141 | +/** |
|
142 | + * @param string $name |
|
143 | + */ |
|
119 | 144 | function drupal_module_get_weight($name) { |
120 | 145 | return db_result(db_query("select weight from {system} where name = '%s'", $name)); |
121 | 146 | } |
122 | 147 | |
148 | +/** |
|
149 | + * @param string $name |
|
150 | + */ |
|
123 | 151 | function drupal_module_set_weight($name, $weight) { |
124 | 152 | db_query("update {system} set weight = %d where name = '%s'", $weight, $name); |
125 | 153 | } |
@@ -168,7 +168,7 @@ |
||
168 | 168 | * |
169 | 169 | * @param string $module_name |
170 | 170 | * The name of the feature module whose components should be reverted. |
171 | - * @return boolean |
|
171 | + * @return boolean|null |
|
172 | 172 | * TRUE or FALSE for whether the components were successfully reverted. |
173 | 173 | */ |
174 | 174 | function hook_features_revert($module_name) { |
@@ -226,6 +226,7 @@ |
||
226 | 226 | * An array of the context requested in this export. |
227 | 227 | * @param $module_name |
228 | 228 | * Optional. The name for the exported module. |
229 | + * @param string $directory |
|
229 | 230 | */ |
230 | 231 | function _drush_features_export($stub, $dependencies, $module_name = NULL, $directory = NULL) { |
231 | 232 | $root = drush_get_option(array('r', 'root'), drush_locate_root()); |
@@ -62,6 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Iterates over data and convert to dependencies if already defined elsewhere. |
65 | + * @param string $module_name |
|
65 | 66 | */ |
66 | 67 | function _features_resolve_dependencies(&$data, &$export, $module_name, $component) { |
67 | 68 | if ($map = features_get_default_map($component)) { |
@@ -371,7 +372,7 @@ discard block |
||
371 | 372 | * Array of parent keys (internal use only). |
372 | 373 | * |
373 | 374 | * @return |
374 | - * A code string ready to be written to a module's .info file. |
|
375 | + string A code string ready to be written to a module's .info file. |
|
375 | 376 | */ |
376 | 377 | function features_export_info($info, $parents = array()) { |
377 | 378 | $output = ''; |
@@ -402,7 +403,7 @@ discard block |
||
402 | 403 | * String contents of the file. |
403 | 404 | * |
404 | 405 | * @return |
405 | - * A string of the tar file contents. |
|
406 | + string A string of the tar file contents. |
|
406 | 407 | */ |
407 | 408 | function features_tar_create($name, $contents) { |
408 | 409 | $tar = ''; |
@@ -551,6 +552,7 @@ discard block |
||
551 | 552 | |
552 | 553 | /** |
553 | 554 | * Processing semaphore operations. |
555 | + * @param string $op |
|
554 | 556 | */ |
555 | 557 | function features_semaphore($op, $component) { |
556 | 558 | // Note: we don't use variable_get() here as the inited variable |
@@ -675,6 +677,8 @@ discard block |
||
675 | 677 | |
676 | 678 | /** |
677 | 679 | * Get a map of components to their providing modules. |
680 | + * @param string $attribute |
|
681 | + * @param string $callback |
|
678 | 682 | */ |
679 | 683 | function features_get_default_map($component, $attribute = NULL, $callback = NULL, $reset = FALSE) { |
680 | 684 | static $map = array(); |
@@ -395,6 +395,7 @@ discard block |
||
395 | 395 | |
396 | 396 | /** |
397 | 397 | * Invoke a component callback. |
398 | + * @param string $callback |
|
398 | 399 | */ |
399 | 400 | function features_invoke($component, $callback) { |
400 | 401 | $args = func_get_args(); |
@@ -410,7 +411,7 @@ discard block |
||
410 | 411 | * Checks whether a component implements the given hook. |
411 | 412 | * |
412 | 413 | * @return |
413 | - * The function implementing the hook, or FALSE. |
|
414 | + string|false The function implementing the hook, or FALSE. |
|
414 | 415 | */ |
415 | 416 | function features_hook($component, $hook, $reset = FALSE) { |
416 | 417 | static $info; |
@@ -665,6 +666,7 @@ discard block |
||
665 | 666 | |
666 | 667 | /** |
667 | 668 | * Restore the specified modules to the default state. |
669 | + * @param string $op |
|
668 | 670 | */ |
669 | 671 | function _features_restore($op, $items = array()) { |
670 | 672 | // Since we can't ensure that users will run update.php immediately after |
@@ -88,6 +88,7 @@ discard block |
||
88 | 88 | * |
89 | 89 | * Note that this master hook does not use $component like the others, but uses the |
90 | 90 | * component module's namespace instead. |
91 | + * @param string $module_name |
|
91 | 92 | */ |
92 | 93 | function ctools_component_features_api($module_name) { |
93 | 94 | $api = array(); |
@@ -101,6 +102,7 @@ discard block |
||
101 | 102 | |
102 | 103 | /** |
103 | 104 | * Master implementation of hook_features_export_options() for all ctools components. |
105 | + * @param string $component |
|
104 | 106 | */ |
105 | 107 | function ctools_component_features_export_options($component) { |
106 | 108 | $options = array(); |
@@ -121,6 +123,7 @@ discard block |
||
121 | 123 | |
122 | 124 | /** |
123 | 125 | * Master implementation of hook_features_export() for all ctools components. |
126 | + * @param string $component |
|
124 | 127 | */ |
125 | 128 | function ctools_component_features_export($component, $data, &$export, $module_name = '') { |
126 | 129 | // Add the actual implementing module as a dependency |
@@ -153,6 +156,7 @@ discard block |
||
153 | 156 | |
154 | 157 | /** |
155 | 158 | * Master implementation of hook_features_export_render() for all ctools components. |
159 | + * @param string $component |
|
156 | 160 | */ |
157 | 161 | function ctools_component_features_export_render($component, $module, $data) { |
158 | 162 | ctools_include('export'); |
@@ -183,6 +187,7 @@ discard block |
||
183 | 187 | |
184 | 188 | /** |
185 | 189 | * Master implementation of hook_features_revert() for all ctools components. |
190 | + * @param string $component |
|
186 | 191 | */ |
187 | 192 | function ctools_component_features_revert($component, $module) { |
188 | 193 | if ($objects = features_get_default($component, $module)) { |
@@ -172,6 +172,9 @@ |
||
172 | 172 | return $menu_links; |
173 | 173 | } |
174 | 174 | |
175 | +/** |
|
176 | + * @param string $indent |
|
177 | + */ |
|
175 | 178 | function _menu_links_features_export_options_recurse($tree, $menu_name, $indent, &$menu_links) { |
176 | 179 | // We don't want to use _menu_parents_recurse as that could potentially cut out some |
177 | 180 | // options as not being suitable for parents which we still want to export. Also we can |
@@ -339,6 +339,7 @@ discard block |
||
339 | 339 | |
340 | 340 | /** |
341 | 341 | * Based upon the settings, get the allowed types for this node. |
342 | + * @param string $module |
|
342 | 343 | */ |
343 | 344 | function panels_common_get_allowed_types($module, $contexts = array(), $has_content = FALSE, $default_defaults = array(), $default_allowed_types = array()) { |
344 | 345 | // Get a list of all types that are available |
@@ -375,9 +376,7 @@ discard block |
||
375 | 376 | * |
376 | 377 | * @ingroup forms |
377 | 378 | * |
378 | - * @param array $allowed_layouts |
|
379 | - * The set of allowed layouts that should be used as the default values |
|
380 | - * for this form. If none is provided, then by default no layouts will be restricted. |
|
379 | + * @param string $module_name |
|
381 | 380 | */ |
382 | 381 | function panels_common_allowed_layouts_form(&$form, &$form_state, $module_name) { |
383 | 382 | // Fetch our allowed layouts from variables. |
@@ -512,7 +511,8 @@ discard block |
||
512 | 511 | * if the actual layout name is needed in the middle, that can't happen. |
513 | 512 | * |
514 | 513 | * @return |
515 | - * The rendered output. |
|
514 | + string The rendered output. |
|
515 | + * @param string $base_path |
|
516 | 516 | */ |
517 | 517 | function panels_common_print_layout_links($layouts, $base_path, $link_options = array()) { |
518 | 518 | $output = ''; |