You are here

function smiley_admin_add in Smiley 6

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

File

./smiley.admin.inc, line 343

Code

function smiley_admin_add($smiley_id = NULL) {
  $path = drupal_get_path('module', 'smiley');
  drupal_add_js($path . '/scripts/admin/smiley-admin.js', 'module', 'header', FALSE, TRUE, FALSE);
  if ($smiley_id) {
    $smiley = db_fetch_array(db_query('SELECT * FROM {smiley} WHERE id = %d', $smiley_id));
  }
  return drupal_get_form('smiley_admin_form', $smiley);
}