You are here

function _evercurrent_key_pattern_is_valid in Evercurrent 7.2

Same name and namespace in other branches
  1. 7 evercurrent.module \_evercurrent_key_pattern_is_valid()

Helper function. Checks a key for a valid pattern.

Parameters

$key: A key to check

Return value

bool True if key is valid.

1 call to _evercurrent_key_pattern_is_valid()
evercurrent_key in ./evercurrent.module
Page callback for retrieving a new key. To be run only if evercurrent actually want a new key.

File

./evercurrent.module, line 97
evercurrent.module

Code

function _evercurrent_key_pattern_is_valid($key) {
  return is_string($key) && preg_match(RMH_MD5_MATCH, $key);
}