function flag_update_export in Flag 7.2
Same name and namespace in other branches
- 6.2 includes/flag.export.inc \flag_update_export()
- 7.3 includes/flag.export.inc \flag_update_export()
Update a flag before export.
Parameters
$flag: The flag object passed by reference.
1 call to flag_update_export()
- flag_update_page in includes/
flag.export.inc - Page for displaying an upgrade message and export form for Flag 1.x flags.
File
- includes/
flag.export.inc, line 239 - Import/Export functionality provided by Flag module.
Code
function flag_update_export(&$flag) {
// Update differences.
if (empty($flag->api_version) || $flag->api_version == 1) {
if (isset($flag->roles) && !isset($flag->roles['flag'])) {
$flag->roles = array(
'flag' => $flag->roles,
'unflag' => $flag->roles,
);
}
$flag->api_version = FLAG_API_VERSION;
}
}