function media_gallery_taxonomy_form_term_submit in Media Gallery 7.2
Same name and namespace in other branches
- 7 media_gallery.module \media_gallery_taxonomy_form_term_submit()
Submit handler for the taxonomy_form_term form.
1 string reference to 'media_gallery_taxonomy_form_term_submit'
File
- ./
media_gallery.module, line 1415
Code
function media_gallery_taxonomy_form_term_submit($form, &$form_state) {
// Change the "Updated term Galleries" message into something that makes
// sense in this context.
$term_name = $form_state['values']['name'];
$messages = $_SESSION['messages']['status'];
$updated_message = t('Updated term %term.', array(
'%term' => $term_name,
));
foreach ($messages as $key => $message) {
if ($message === $updated_message) {
$_SESSION['messages']['status'][$key] = t('The gallery settings have been saved.');
}
}
}