function nodewords_list_submit_save in Nodewords: D6 Meta Tags 6.2
'Save meta tags' submit handler.
1 string reference to 'nodewords_list_submit_save'
- nodewords_list in ./
nodewords.admin.inc - list the available meta tags.
File
- ./
nodewords.admin.inc, line 512 - Administration forms.
Code
function nodewords_list_submit_save($form, &$form_state) {
$form_values = $form_state['values'];
foreach ($form_values['tags'] as $tagid => $tag) {
if (isset($tag['weight'])) {
_nodewords_db_update_tag_weight($tagid, (int) $tag['weight']);
}
}
drupal_set_message(t('The meta tag settings have been updated.'));
}