You are here

function flag_lists_set_messages in Flag Lists 6

Same name and namespace in other branches
  1. 7.3 flag_lists.module \flag_lists_set_messages()
  2. 7 flag_lists.module \flag_lists_set_messages()

Build a flag's messages.

2 calls to flag_lists_set_messages()
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 421
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;
}