You are here

function smileys_weight_handle in Smileys 6

1 string reference to 'smileys_weight_handle'
smileys_menu in ./smileys.module
Implementation of hook_menu().

File

./smileys.admin.inc, line 230

Code

function smileys_weight_handle($weights, $ids, $categories) {
  $ids = explode(':', $ids);
  $weights = explode(':', $weights);
  $categories = explode(':', $categories);
  foreach ($ids as $key => $id) {
    db_query("UPDATE {smileys} SET package='%s', weight=%d WHERE id=%d", $categories[$key], $weights[$key], $id);
    $smileys[$id] = array(
      'category' => $categories[$key],
      'weight' => $weights[$key],
    );
  }
}