in the sections.php
<select name="module" style="width: 100%;" class="inputveldje">
<?php
// Insert module list
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'page' AND directory != 'menu_link' order by name");
if($result->numRows() > 0) {
while($module = $result->fetchRow()) {
// Check if user is allowed to use this module
if(!is_numeric(array_search($module['directory'], $module_permissions))) {
?>
<option value="<?php echo $module['directory']; ?>"<?php if($module['directory'] == 'wysiwyg') { echo 'selected'; } ?>><?php echo $module['name']; ?></option>
<?php
}
}
}
?>
</select>
I hoped there was a way to check wheter a certain module is already added to the list for that specific page and then exclude it from the list...