I'm pretty new to Drupal but have take my company's half-baked site from the server and gotten a working instance of it in my local wamp stack working. The only problem is that it seems on every page there is a section of code being inserted:
<?php
if ( isset($entity->field_job_id['und'][0]['safe_value'] )) {
$job_id = $entity->field_job_id['und'][0]['safe_value'] ;
$application_link_form = '
<form action="/careers/application" method="POST">
<input type="hidden" name="job_id" value="' . $job_id . '" />
<input type="submit" value="Apply online" class="job-application-link" />
</form>';
print $application_link_form;
}
?>
This is showing a section of this code plus an "Apply Online" button at the top of each section of content. It doesn't seem to matter what the content type of the content and the site which I imported all the files and db from has no such code - not even when I view source is there anything even commented out. Hopefully this code gives you some context as to where this is ocurring - it comes immediately following this series of divs:
<div class="region region-content">
<div id="block-system-main" class="block block-system">
<div class="content">
<div class="contextual-links-region"><div class="panel-display panel-1col clearfix" id="job">
<div class="panel-panel panel-col">
<div>
<div class="panel-pane pane-dsc" >
<div class="pane-content">
In any case, I cannot figure out where to find this code in order to get rid of it. I'm not seeing any modules relating to this, etc. And I just am baffled as to why it would start showing up after importing from a site that doesn't display this. If anyone can think of any possibilities, please let me know!