function smileys_admin_add in Smileys 6
Same name and namespace in other branches
- 5 smileys.module \smileys_admin_add()
1 string reference to 'smileys_admin_add'
- smileys_menu in ./
smileys.module - Implementation of hook_menu().
File
- ./
smileys.admin.inc, line 342
Code
function smileys_admin_add($smiley_id = NULL) {
$path = drupal_get_path('module', 'smileys');
drupal_add_js($path . '/scripts/admin/smileys-admin.js', 'module', 'header', FALSE, TRUE, FALSE);
if ($smiley_id) {
$smiley = db_fetch_array(db_query('SELECT * FROM {smileys} WHERE id = %d', $smiley_id));
}
return drupal_get_form('smileys_admin_form', $smiley);
}