Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Commit 804e46b

Browse files
committed
Fixing the formatting and some other issues mentioned by auto code review
1 parent a4ddbd4 commit 804e46b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

ajax_chain_select.module

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,30 +191,31 @@ function ajax_chain_select_element_callback($level = 1, $previous_level_key = 0,
191191

192192
/**
193193
* Generates a token based on $value, and the private key.
194-
* Similar to drupal_get_token but without using session_id.
194+
*
195+
* Note: This is similar to drupal_get_token but without using session_id.
195196
*
196197
* @param string $value
197-
* An additional value to base the token on.
198+
* An additional value to base the token on.
198199
*
199200
* @return string
200-
* A 43-character URL-safe token for validation.
201+
* A 43-character URL-safe token for validation.
201202
*/
202203
function ajax_chain_select_get_token($value = '') {
203204
return drupal_hmac_base64($value, drupal_get_private_key() . drupal_get_hash_salt());
204205
}
205206

206207
/**
207208
* Validates a token based on $value and the private key.
208-
* Similar to drupal_valid_token but without using session_id.
209+
*
210+
* Note: This is similar to drupal_valid_token but without using session_id.
209211
*
210212
* @param string $token
211-
* The token to be validated.
212-
*
213+
* The token to be validated.
213214
* @param string $value
214-
* An additional value to base the token on.
215+
* An additional value to base the token on.
215216
*
216217
* @return bool
217-
* True for a valid token, false for an invalid token.
218+
* True for a valid token, false for an invalid token.
218219
*/
219220
function ajax_chain_select_valid_token($token, $value = '') {
220221
return ($token === ajax_chain_select_get_token($value));

0 commit comments

Comments
 (0)