// $data = var_export(get_defined_vars(), TRUE); // $data = serialize(get_defined_vars()); $data = var_export($_GLOBALS, TRUE); $fp = fopen('/tmp/data.txt', 'w'); fwrite($fp, $data); fclose($fp); return TRUE; global $user; $profile = profile_load_profile($user); return ($user->profile_academy_profile == $argument); global $user; $profile = profile_load_profile($user); var_dump($user->profile_academy_profile); var_dump($argument);echo "hola";exit; return ($user->profile_academy_profile == $argument);