summaryrefslogtreecommitdiffstats
path: root/list-users.php
diff options
context:
space:
mode:
authorKyle Kaminski <kyle@kkaminsk.com>2014-05-21 22:27:43 -0500
committerKyle Kaminski <kyle@kkaminsk.com>2014-05-21 22:27:43 -0500
commite4d376db088d296dfb34b58e8b557c38107b17c8 (patch)
tree236b99505e9ae69e287f07e0331fad3bb5fe33af /list-users.php
downloaddrupal-quest-e4d376db088d296dfb34b58e8b557c38107b17c8.tar.gz
drupal-quest-e4d376db088d296dfb34b58e8b557c38107b17c8.tar.bz2
drupal-quest-e4d376db088d296dfb34b58e8b557c38107b17c8.zip
initial commit
Diffstat (limited to 'list-users.php')
-rw-r--r--list-users.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/list-users.php b/list-users.php
new file mode 100644
index 0000000..66cf738
--- /dev/null
+++ b/list-users.php
@@ -0,0 +1,12 @@
+<?php
+
+define('DRUPAL_ROOT', getcwd());
+
+include_once DRUPAL_ROOT . '/includes/bootstrap.inc';
+drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
+
+$result = db_query('SELECT * from {users}');
+foreach ($result as $record) {
+ /* ToDo: call drupal_render? or theme and create a table */
+ print $record->name . PHP_EOL;
+}