Skip to content

Instantly share code, notes, and snippets.

@chadsten
Created October 23, 2013 19:26
Show Gist options
  • Select an option

  • Save chadsten/7125017 to your computer and use it in GitHub Desktop.

Select an option

Save chadsten/7125017 to your computer and use it in GitHub Desktop.
<?php
function get_users($type = 'all', $status = 'all' , $state = 'all', $county = 'all') {
$query = "SELECT * from users";
$result = db_query($query);
foreach ($result as $user) {
$users[] = $user->uid;
}
$user_list = entity_load('user',$users);
foreach ($user_list as $user_entity) {
$wrapper = entity_metadata_wrapper('user', $user_entity);
dpm($wrapper);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment