I want to disable the CiviCRM breadcrumbs inside the program code for security reasons.
I tried modifying sites/all/modules/civicrm/CRM/Core/DAO/Menu.php by adding
$skipBreadcrumb['type'] = TRUE; in the
public static function &fields() function (where $skipBreadcrumb is set).
I also tried commenting out the
public function addBreadCrumb() and its call in
public function preProcess() inside the sites/all/modules/civicrm/CRM/Report/Form.php.
I know the path sounds incorrect for what I want to do, but it was the only search result for 'breadcrumb' in a function that I could find.
Can anyone give me a hint?
Edit: Probably it was exaggerated to talk of security reasons here. It is more about not making any pages visible as default that users don't need, that is, keeping the (visible) system slim.