| Versionen | |
|---|---|
| drupal6 – drupal7 | node_assign_owner_action_submit($form, $form_state) |
modules/
<?php
function node_assign_owner_action_submit($form, $form_state) {
// Username can change, so we need to store the ID, not the username.
$uid = db_result(db_query("SELECT uid from {users} WHERE name = '%s'", $form_state['values']['owner_name']));
return array('owner_uid' => $uid);
}
?>
Kommentare
Kommentar hinzufügen