function flag_lists_set_messages in Flag Lists 7
Same name and namespace in other branches
- 6 flag_lists.module \flag_lists_set_messages()
- 7.3 flag_lists.module \flag_lists_set_messages()
Build a flag's messages.
3 calls to flag_lists_set_messages()
- flag_lists_add_js in ./
flag_lists.admin.inc - Callback for adding new lists through AJAX.
- flag_lists_form_submit in ./
flag_lists.admin.inc - Save a list.
- flag_lists_rebuild in ./
flag_lists.module - Update ALL flag lists with settings form values.
File
- ./
flag_lists.module, line 796 - The Flag Lists module.
Code
function flag_lists_set_messages(&$flag) {
// Get the parent flag. These are cached by the flag module.
$pflag = flag_get_flag(NULL, $flag->pfid);
$title = $flag->title;
$lists_name = variable_get('flag_lists_name', t('list'));
$flag->flag_short = $pflag->flag_short;
$flag->flag_long = $pflag->flag_long;
$flag->flag_message = $pflag->flag_message;
$flag->unflag_short = $pflag->unflag_short;
$flag->unflag_long = $pflag->unflag_long;
$flag->unflag_message = $pflag->unflag_message;
}