I have a page on drupal 7 where I have the text format set to PHP Code. I am using the drupal_add_html_head() to include a few CSS/JS files, and an RSS link. My problem is that everything I add with
drupal_add_html_head is only visible for a single view after the caches are cleared. After that single view they do not show up in the view source.
It can be demonstrated with a Body that is as simple as below. The first view will show an alert. If you reload the page, the script is not added, and alert() is not called.
I have also tried
drupal_add_js with similar results. The CSS/JS is displayed after the cache is cleared, but only once.