@@ -6,6 +6,9 @@ discard block |
||
| 6 | 6 | /* |
| 7 | 7 | * A convienence function to display the HTML for an AtD option |
| 8 | 8 | */ |
| 9 | +/** |
|
| 10 | + * @param string $name |
|
| 11 | + */ |
|
| 9 | 12 | function AtD_print_option( $name, $value, $options ) { |
| 10 | 13 | // Attribute-safe version of $name |
| 11 | 14 | $attr_name = sanitize_title( $name ); // Using sanitize_title since there's no comparable function for attributes |
@@ -112,6 +115,9 @@ discard block |
||
| 112 | 115 | /* |
| 113 | 116 | * Returns an array of AtD user options specified by $name |
| 114 | 117 | */ |
| 118 | +/** |
|
| 119 | + * @param string $name |
|
| 120 | + */ |
|
| 115 | 121 | function AtD_get_options( $user_id, $name ) { |
| 116 | 122 | $options_raw = AtD_get_setting( $user_id, $name, 'single' ); |
| 117 | 123 | |
@@ -130,6 +136,9 @@ discard block |
||
| 130 | 136 | /* |
| 131 | 137 | * Saves set of user options specified by $name from POST data |
| 132 | 138 | */ |
| 139 | +/** |
|
| 140 | + * @param string $name |
|
| 141 | + */ |
|
| 133 | 142 | function AtD_update_options( $user_id, $name ) { |
| 134 | 143 | /* We should probably run $_POST[name] through an esc_*() function... */ |
| 135 | 144 | if ( isset( $_POST[ $name ] ) && is_array( $_POST[ $name ] ) ) { |