CMS  Version 3.9
manifest.inc
Go to the documentation of this file.
1 <?php
8 {
9  static function getComponentDefinition()
10  {
11  $component = new Component();
12  $component->name = "mobile_settings";
13  $component->description = "Detects mobile browsers and implements mobile browser content-selection rules.";
14  $component->author = "Andy Green";
15  $component->version = "1.0";
16  $component->priority = 1;
17  $component->enabled = true;
18 
19  return $component;
20  }
21 
23 
24  static function subscribeToEvents()
25  {
26  return array(
27  "ComponentScanComplete" => array(MobileSettingsManager, setDefaults),
28  "Initialize" => array(MobileSettingsManager, onInitialize),
29  "OverrideTemplate" => array(MobileSettingsManager, overrideTemplate),
30  "CheckUseMobile" => array(MobileSettingsManager, useMobile)
31  );
32  }
33 }
34 ?>
$component
Definition: help.inc:38
Provides a central management class for event handlers and common functionality for the mobile compon...
static subscribeToEvents()
Definition: manifest.inc:24
static getComponentDefinition()
Definition: manifest.inc:9