You are here

function smileys_admin_add in Smileys 5

Same name and namespace in other branches
  1. 6 smileys.admin.inc \smileys_admin_add()
1 string reference to 'smileys_admin_add'
smileys_menu in ./smileys.module
Implementation of hook_menu().

File

./smileys.module, line 472

Code

function smileys_admin_add() {
  $edit = $_POST['edit'];
  if ($smiley_id = arg(4)) {
    $smiley = db_fetch_array(db_query('SELECT * FROM {smileys} WHERE id = %d', $smiley_id));
    $edit = $smiley ? $smiley : $_POST['edit'];
  }
  return drupal_get_form('smileys_admin_form', $edit);
}