function hashtags_clean_orphaned_terms_submit in Hashtags 7
Submit handler for 'Clean orphaned hashtags' button
1 string reference to 'hashtags_clean_orphaned_terms_submit'
- hashtags_configuration_form in ./
hashtags.module - Hashtags configuration form
File
- ./
hashtags.module, line 863
Code
function hashtags_clean_orphaned_terms_submit($form, &$form_state) {
if ($form_state['clicked_button']['#parents'][0] == 'clean_orphaned_terms') {
$count = hashtags_clean_orphaned_terms();
drupal_set_message(t(':count orphaned hastags have been cleaned'), array(
':count' => $count,
));
}
}