Esempio n. 1
0
function customappsreg_destinations()
{
    // return an associative array with destination and description
    foreach (customappsreg_customdests_list() as $row) {
        $extens[] = array('destination' => $row['custom_dest'], 'description' => $row['description'], 'category' => _("Custom Destinations"));
    }
    return isset($extens) ? $extens : null;
}
Esempio n. 2
0
        }
        break;
    case 'delete':
        customappsreg_customdests_delete($custom_dest);
        needreload();
        redirect_standard();
        break;
}
?>
 
</div>

<div class="rnav"><ul>
<?php 
echo '<li><a href="config.php?display=' . $display . '&amp;type=' . $type . '">' . _('Add Custom Destination') . '</a></li>';
foreach (customappsreg_customdests_list() as $row) {
    $descr = $row['description'] != '' ? $row['description'] : '(' . $row['custom_dest'] . ')';
    echo '<li><a href="config.php?display=' . $display . '&amp;type=' . $type . '&amp;extdisplay=' . $row['custom_dest'] . '" class="">' . $descr . '</a></li>';
}
?>
</ul></div>

<div class="content">

<?php 
if ($custom_dest != '') {
    // load
    $usage_list = framework_display_destination_usage(customappsreg_customdests_getdest($custom_dest));
    $row = customappsreg_customdests_get($custom_dest);
    $description = $row['description'];
    $notes = $row['notes'];