Skip to content
Snippets Groups Projects
Commit f070961b authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fixes for modules/sanitycheck

parent fab5d312
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Hook to add the sanitycheck link to the config page.
*
* @param \SimpleSAML\XHTML\Template $template The template that we should alter in this hook.
* @return void
*/
function sanitycheck_hook_configpage(\SimpleSAML\XHTML\Template &$template)
{
......
<?php
/**
* Hook to run a cron job.
*
* @param array &$croninfo Output
* @return void
*/
function sanitycheck_hook_cron(&$croninfo)
{
assert(is_array($croninfo));
......@@ -35,7 +36,7 @@ function sanitycheck_hook_cron(&$croninfo)
$croninfo['summary'][] = 'Sanitycheck error: '.$err;
}
}
} catch (Exception $e) {
} catch (\Exception $e) {
$croninfo['summary'][] = 'Error executing sanity check: '.$e->getMessage();
}
}
<?php
/**
* Hook to add the modinfo module to the frontpage.
*
* @param array &$links The links on the frontpage, split into sections.
* @return void
*/
function sanitycheck_hook_frontpage(&$links)
{
......
<?php
/**
* This hook lets the module describe itself.
*
* @param array &$moduleinfo The links on the frontpage, split into sections.
* @return void
*/
function sanitycheck_hook_moduleinfo(&$moduleinfo)
{
......
<?php
/**
* Hook to add the modinfo module to the frontpage.
*
* @param array &$hookinfo hookinfo
* @return void
*/
function sanitycheck_hook_sanitycheck(&$hookinfo)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment