function alinks_add_form_submit in Alinks 6
Same name and namespace in other branches
- 7 alinks.module \alinks_add_form_submit()
Submit the form used to add alinks and insert the data in the db
File
- ./
alinks.module, line 336
Code
function alinks_add_form_submit($form, &$form_state) {
db_query("INSERT INTO {alinks} (alink_start_boundary, alink_text, alink_end_boundary, alink_case_insensitive, alink_url, url_title, alink_external, alink_class, alink_weight) VALUES (%d, '%s', %d, %d, '%s', '%s', %d, '%s', %d)", $form_state['values']['start_boundary'], $form_state['values']['word'], $form_state['values']['end_boundary'], $form_state['values']['case_insensitive'], $form_state['values']['url'], $form_state['values']['url_title'], $form_state['values']['external'], $form_state['values']['class'], $form_state['values']['weight']);
drupal_set_message('Alink succesfuly added');
}