Skip to content

Instantly share code, notes, and snippets.

Avatar

John Housser housser

  • North Vancouver, BC
View GitHub Profile
@housser
housser / remove-tags.sh
Created Sep 7, 2014
Remove Git tags based on regular expression, and remove from remote
View remove-tags.sh
#!/bin/bash
for i in $( git tag | grep ^6 ); do
#echo item: $i
git tag -d $i
git push origin :refs/tags/$i
done
View patch--og_form_group_reference_validate.patch
diff --git a/og.module b/og.module
index 6f28205..a3aa3be 100755
--- a/og.module
+++ b/og.module
@@ -762,6 +762,12 @@ function og_form_group_reference_validate($form, &$form_state) {
if (!empty($form_state['values'][$field_name][LANGUAGE_NONE])) {
return;
}
+
+ // @TODO: Find out why the 'og_group_ref' field isn't getting maintained in the 'values' array by form_builder()