You are here

function _smileys_list in Smileys 6

Same name and namespace in other branches
  1. 5 smileys.module \_smileys_list()
4 calls to _smileys_list()
smileys_admin_list in ./smileys.admin.inc
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, $query_suffix = '') {
  static $list;
  if (!$list || $refresh) {
    $list = array();
    $result = db_query('SELECT * FROM {smileys} ' . $query_suffix);
    while ($object = db_fetch_object($result)) {
      $list[] = $object;
    }
  }
  return $list;
}