function pfdp_get_proper_user_array in Private files download permission 3.x
Same name and namespace in other branches
- 8.2 pfdp.module \pfdp_get_proper_user_array()
Returns an array of users with no '0' values, as '0' means 'unchecked'.
2 calls to pfdp_get_proper_user_array()
- DirectoryListBuilder::buildRow in src/
DirectoryListBuilder.php - Builds a row for an entity in the entity listing.
- pfdp_file_download in ./
pfdp.module
File
- ./
pfdp.module, line 24 - Implements the main module function and generic helper functions.
Code
function pfdp_get_proper_user_array($users) {
while (in_array('0', $users)) {
$k = array_search('0', $users);
unset($users[$k]);
}
return $users;
}