You are here

function smiley_weight_handle in Smiley 6

1 string reference to 'smiley_weight_handle'
smiley_menu in ./smiley.module
Implementation of hook_menu().

File

./smiley.admin.inc, line 231

Code

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