$same_type = variable_get('fivestar_rec_same_type', 1)?'_fivestar_rec_enforce_same_type':NULL;
and then replace string constants with $same_type.
$same_type = variable_get('fivestar_rec_same_type', 1)?'_fivestar_rec_enforce_same_type':NULL;
and then replace string constants with $same_type.
Comments
Comment #1
danithaca commentedplease double check api.drupal.org. the function variable_get() returns the default value as the 2nd param if the 1st param was not set. also, _fivestar_rec_enforce_same_type is the callback function handle, not a string variable.
marked as won't fix unless more info provided.
thanks for the support though.
Comment #2
danithaca commented