@@ -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 |
@@ -99,6 +102,9 @@ discard block |
||
99 | 102 | /* |
100 | 103 | * Returns an array of AtD user options specified by $name |
101 | 104 | */ |
105 | +/** |
|
106 | + * @param string $name |
|
107 | + */ |
|
102 | 108 | function AtD_get_options( $user_id, $name ) { |
103 | 109 | $options_raw = AtD_get_setting( $user_id, $name, 'single' ); |
104 | 110 | |
@@ -115,6 +121,9 @@ discard block |
||
115 | 121 | /* |
116 | 122 | * Saves set of user options specified by $name from POST data |
117 | 123 | */ |
124 | +/** |
|
125 | + * @param string $name |
|
126 | + */ |
|
118 | 127 | function AtD_update_options( $user_id, $name ) { |
119 | 128 | /* We should probably run $_POST[name] through an esc_*() function... */ |
120 | 129 | $post_name = filter_input(INPUT_POST, $name, FILTER_DEFAULT , FILTER_REQUIRE_ARRAY); |