function privatemsg_filter_privatemsg_thread_operations in Privatemsg 7.2
Same name and namespace in other branches
- 6.2 privatemsg_filter/privatemsg_filter.module \privatemsg_filter_privatemsg_thread_operations()
- 7 privatemsg_filter/privatemsg_filter.module \privatemsg_filter_privatemsg_thread_operations()
Form callback for removing a tag to threads.
File
- privatemsg_filter/
privatemsg_filter.module, line 579 - Allows users to tag private messages and to filter based upon those tags.
Code
function privatemsg_filter_privatemsg_thread_operations($type) {
if ($type == 'inbox') {
$archive = array(
'label' => t('Archive'),
'callback' => 'privatemsg_filter_remove_tags',
'callback arguments' => array(
'tag_id' => variable_get('privatemsg_filter_inbox_tag', ''),
),
'success message' => t('The messages have been archived.'),
'undo callback' => 'privatemsg_filter_add_tags',
'undo callback arguments' => array(
'tag_id' => variable_get('privatemsg_filter_inbox_tag', ''),
),
);
return array(
'archive' => $archive,
);
}
}