Skip to content
Snippets Groups Projects
Select Git revision
  • 0ed87d60bf5105612c734787b8d2153f878d9554
  • master default protected
  • cesnet_simplesamlphp-1.19.8
  • elixir_simplesamlphp-1.19.8
  • simplesamlphp-1.19.8
  • cesnet_simplesamlphp-1.19.5
  • simplesamlphp-2.0
  • feature/assets
  • feature/rac-source-selector
  • cleanup/remove-base64-attributes
  • simplesamlphp-1.19
  • elixir_simplesamlphp-1.19.5
  • aarc_idp_hinting
  • feature/validate-authstate-before-processing
  • feature/build-two-tarballs
  • dependabot/composer/twig/twig-3.4.3
  • tvdijen-patch-1
  • unchanged-acs-url-no-www-script
  • feature/translation-improvements
  • symfony6
  • move_tests
  • v1.19.9
  • v2.1.3
  • v2.0.10
  • v2.1.2
  • v2.0.9
  • v2.1.1
  • v2.0.8
  • v2.1.0
  • v2.0.7
  • v2.1.0-rc1
  • v2.0.6
  • v2.0.5
  • 2.0.4-alpha.1
  • v2.0.4-alpha.1
  • v2.0.4
  • v2.0.3
  • v2.0.2
  • v2.0.1-alpha.1
  • v2.0.1
  • v1.19.8
41 results

hook_frontpage.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    hook_frontpage.php 527 B
    <?php
    /**
     * Hook to add the modinfo module to the frontpage.
     *
     * @param array &$links  The links on the frontpage, split into sections.
     */
    function statistics_hook_frontpage(&$links) {
    	assert('is_array($links)');
    	assert('array_key_exists("links", $links)');
    
    	$links['links']['statistics'] = array(
    		'href' => SimpleSAML_Module::getModuleURL('statistics/showstats.php'),
    		'text' => array('en' => 'Show statistics', 'no' => 'Vis statistikk'),
    		'shorttext' => array('en' => 'Statistics', 'no' => 'Statistikk'),
    	);
    
    }
    ?>