You are here

function _smileys_list in Smileys 5

Same name and namespace in other branches
  1. 6 smileys.module \_smileys_list()
4 calls to _smileys_list()
smileys_admin_list in ./smileys.module
smileys_filter_process in ./smileys.module
smileys_table in ./smileys.module
_smileys_select_table in ./smileys.module

File

./smileys.module, line 34

Code

function _smileys_list($refresh = 0, $whereclause = '') {
  static $list;
  if (!$list || $refresh) {
    $list = array();
    if ($whereclause != '') {
      $whereclause = ' WHERE ' . $whereclause;
    }
    $result = db_query('SELECT * FROM {smileys} ' . $whereclause);
    while ($object = db_fetch_object($result)) {
      $list[] = $object;
    }
  }
  return $list;
}