Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update hook to: Update all current bullet nodes to use 1 as closed a... #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions os2web_esdh_provider.install
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,11 @@ function os2web_esdh_provider_requirements($phase) {
);
return $requirements;
}

/**
* Update all current bullet nodes to use 1 as closed and 0(zero) as open.
*/
function os2web_esdh_provider_update_7100(&$sandbox) {
// This inverts all field values to the field field_os2web_meetings_bul_closed.
db_query('UPDATE {field_data_field_os2web_meetings_bul_closed} SET `field_os2web_meetings_bul_closed_value` = NOT `field_os2web_meetings_bul_closed_value`');
}