name); $ga_role = "googleanalytics_track_{$role_varname}"; //check if variable is not already set from a previous install if(strpos(variable_get($ga_role, 'new'), 'new') !== FALSE) { variable_set($ga_role, TRUE); drupal_set_message(t('Role %rolename is now being tracked by Google Analytics', array('%rolename' => $role->name))); } } }