How to get rid of Re geocode and delete radio boxes on Location module? How can I remove the ReGeocode and Delete checkboxes from the Location module? I don't need these functions and there is no settings to delete them.

Where is the PHP or html file located so I can manually delete the lines of code? I searched for it but can't find it anywhere.

&lt;label for="edit-locations-0-re-geocode-location"&gt;Re geocode &lt;/label&gt;

&lt;label for="edit-locations-0-delete-location"&gt;Delete &lt;/label&gt;


I think these are the lines I need to delete?
There isn't a template to edit the location module's form elements. You'll need to alter its form element. You can drop the following functions into a custom module to alter the form element so that it doesn't display the Recode/Delete checkboxes.

function MYMODULE_element_info_alter(&amp;$type) {
  if(isset($type['location_element'])) {
    $type['location_element']['#after_build'][] ='MYMODULE_location_element_post_render';
  }
}
function MYMODULE_location_element_post_render($element, &amp;$form_state) {
  $element['delete_location']['#access'] = FALSE;
  $element['re_geocode_location']['#access'] = FALSE;
  return $element;
}