Is it possible to perform condition inside template.php (if logged_in, do these...else do that/ do nothing)?
I am a front-end developer, and as a front-end developer, i like my code clean. So i'm cleaning up my drupal html source code output.
I found some modules out there, that help a lot, and one of then is HTML5 Tools and Metatag (thank you for the team developers). But even with those great tools, i still having the "Drupal.settings" in my html output.
Ocasionally, i found that i can remove the "Drupal.settings" from the html with the hook_js_alter :
function MYTHEME_js_alter (&$js) { unset($js['settings']); }
But the problem is: my logged in users still needing this "Drupal.settings" because some modules use it. So that's why i'm asking if there is a way to perform condition inside template.php to logged_in/logged_out users.
THank you in advance