You are here

function _smileys_select_table in Smileys 5

Same name and namespace in other branches
  1. 6 smileys.module \_smileys_select_table()
2 calls to _smileys_select_table()
smileys_list in ./smileys.module
theme_smileys_select_table in ./smileys.module

File

./smileys.module, line 111

Code

function _smileys_select_table($promoted = false) {
  $content = '';
  if ($promoted == true) {
    $list = _smileys_list(1, " promote_to_box='1' ");
    _smileys_list(1);
  }
  else {
    $list = _smileys_list();
  }
  foreach ($list as $smiley) {
    $acronyms = explode(' ', $smiley->acronyms);
    $alt = check_plain(implode('  ', $acronyms));
    $desc = implode('  ', $acronyms);
    $content .= '<span><img src="' . check_url($GLOBALS['base_url'] . '/' . $smiley->image) . '" title="' . check_plain($smiley->description) . '" alt="' . $acronyms[0] . '" class="smiley-class"/></span>';
  }
  return $content;
}