function nodewords_custom_pages_overview_submit in Nodewords: D6 Meta Tags 6
Same name and namespace in other branches
- 6.2 nodewords_custom_pages/nodewords_custom_pages.admin.inc \nodewords_custom_pages_overview_submit()
File
- ./
nodewords.admin.inc, line 91 - Administration interface for nodewords.module.
Code
function nodewords_custom_pages_overview_submit($form, &$form_state) {
$row = new stdClass();
foreach ($form_state['values']['path'] as $pid => $value) {
$row->pid = $pid;
$row->path = $form_state['values']['path'][$pid];
$row->weight = $form_state['values']['weight'][$pid];
$row->enabled = $form_state['values']['enabled'][$pid];
drupal_write_record('nodewords_custom', $row, 'pid');
$done = TRUE;
}
if (isset($done)) {
drupal_set_message(t('The configuration options have been saved.'));
}
}