You are here

function flag_lists_rebuild in Flag Lists 7

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

Update ALL flag lists with settings form values.

1 call to flag_lists_rebuild()
flag_lists_rebuild_confirm_submit in ./flag_lists.admin.inc
Confirm global settings rebuild.

File

./flag_lists.module, line 1092
The Flag Lists module.

Code

function flag_lists_rebuild() {
  $flags = flag_lists_get_flags();
  foreach ($flags as $flag) {
    flag_lists_set_messages($flag);
    $flag->link_type = 'toggle';
    flag_lists_save($flag);
  }
}