function uif_plus_check_og_version_1 in User Import Framework Plus 7
Helper function to check the version of og, if available. We are interested in whether the available version of og is 1.x
Return value
boolean - If true, og is 1.x else if og is enabled, it's >= 2.0
2 calls to uif_plus_check_og_version_1()
- UIFPlusOgFieldsTestCase::testUIFPlusOgFieldImport in ./
uif_plus.test - Test import of og group memberships
- uif_plus_process_user_groups in ./
uif_plus.module - Process import of users into groups.
File
- ./
uif_plus.module, line 594 - Advanced user import from a CSV file.
Code
function uif_plus_check_og_version_1() {
$module_info = system_get_info('module', 'og');
$og_version_1 = isset($module_info['version']) && strpos($module_info['version'], '7.x-1.') !== FALSE ? TRUE : FALSE;
return $og_version_1;
}