Hi folks,
I would like to check if form track_anything is installed/enabled, and if so, I would like to put a link named “configure tracks” which points to interface/forms/track_anything/create.php into Left-Nav. Thus I added the two lines 1464 and 1465 to left_nav.php (see commit openemr/left_nav.php at track_anything2 · produnis/openemr · GitHub )
<?php $myrow = sqlQuery("SELECT state FROM registry WHERE directory = 'track_anything'");
if($myrow=='1') { genMiscLink('RTop','tan','0',xl('Configure Tracks'),'forms/track_anything/create.php'); }?>
… but a) it does not seem to work and b) my code looks alien there…
If the user installs/enables the form, frame “left-nav.php” needs to be reloaded in order to show the new link “Configure Tracks”. Any ideas on how to reload the frame after a form was enabled?