some backend stuff for apps
This commit is contained in:
22
mod/apps.php
22
mod/apps.php
@@ -1,17 +1,21 @@
|
||||
<?php
|
||||
|
||||
require_once('include/apps.php');
|
||||
|
||||
function apps_content(&$a) {
|
||||
|
||||
$apps = $a->get_apps();
|
||||
|
||||
if(count($apps) == 0)
|
||||
notice( t('No installed applications.') . EOL);
|
||||
|
||||
|
||||
$tpl = get_markup_template("apps.tpl");
|
||||
return replace_macros($tpl, array(
|
||||
'$title' => t('Applications'),
|
||||
'$apps' => $apps,
|
||||
));
|
||||
$apps = get_system_apps();
|
||||
|
||||
$o .= print_r($apps,true);
|
||||
|
||||
return $o;
|
||||
|
||||
// $tpl = get_markup_template("apps.tpl");
|
||||
// return replace_macros($tpl, array(
|
||||
// '$title' => t('Applications'),
|
||||
// '$apps' => $apps,
|
||||
// ));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user