function _patterns_is_patterns_results in Patterns 7.2
Same name and namespace in other branches
- 7 includes/api/api.inc \_patterns_is_patterns_results()
Checks if a (supposed) array is actually correctly formatted as a patterns_results().
Parameters
mixed $results The array to check.:
Return value
bool TRUE if correct, FALSE otherwise.
See also
2 calls to _patterns_is_patterns_results()
- patterns_execute_action in includes/
core/ common.inc - Execute an action.
- patterns_invoke in ./
patterns.module - Execute hook_patterns with the given operation and return the results.
File
- includes/
api/ api.inc, line 188 - API for writing pattern files.
Code
function _patterns_is_patterns_results($results) {
// 'status' is the only mandatory field.
if (!isset($results['status'])) {
return FALSE;
}
return TRUE;
}