You are here

README.txt in Mobile Switch 7.2

Mobile Detect Import module, README.txt

Update and import functions for the Mobile Detect PHP class.

Mobile Detect home: http://mobiledetect.net

DEPENDENCIES

Drupal 7.
The Mobile Detect PHP class from http://mobiledetect.net.

INSTALL

This module does not include the actual Mobile Detect class.
These must be downloaded or cloned from one of the download links
and installed in the Drupal site as a library.

See the README.txt of the Mobile Switch module for installtion
instructions.

ADMINISTER

Administer the Mobile Detect Import module under:
Administration -> Configuration -> User interface -> Mobile Switch
admin/config/user-interface/mobile-switch/mobile-detect-import

a)
Configure the 'Enable automatic version check'.

b)
The 'Refresh Mobile Detect' button can be used for a manual version check.

On a fresh installation or a initial use of the Mobile Detect class
it is recommended to check for a new version manually.

- Multi site installation

Administer Mobile Detect Import and the version files in
the default site installation.

HOW WORKS

The import function needs the enabled automatic version check or the
manually 'Refresh Mobile Detect' action in the module administration.

If a new version of the Mobile Detect class is detected, this version
will be downloaded and stored in the directory

sites/default/files/Mobile_Detect as file Mobile_Detect.php.

a)
When a new version is available, it is reported on

the 'Status Report' page,
the administration page of the Mobile Detect Import module.

b)
When a new version is reported

1)
copy the stored file to the Mobile Detect library directory
2)
OR download the new version an store the new Mobile Detect class file
in the Mobile Detect library directory.

DEVELOPMENT

The machine name of the Mobile Detect library: Mobile_Detect

Example PHP code to get library informations:


$library = libraries_detect('Mobile_Detect');
LIMITATION No direct import of the Mobile Detect class in the library directory.

File

modules/mobile_detect_import/README.txt
View source
  1. Mobile Detect Import module, README.txt
  2. Update and import functions for the Mobile Detect PHP class.
  3. Mobile Detect home: http://mobiledetect.net
  4. DEPENDENCIES
  5. Drupal 7.
  6. The Mobile Detect PHP class from http://mobiledetect.net.
  7. INSTALL
  8. This module does not include the actual Mobile Detect class.
  9. These must be downloaded or cloned from one of the download links
  10. and installed in the Drupal site as a library.
  11. See the README.txt of the Mobile Switch module for installtion
  12. instructions.
  13. ADMINISTER
  14. Administer the Mobile Detect Import module under:
  15. Administration -> Configuration -> User interface -> Mobile Switch
  16. admin/config/user-interface/mobile-switch/mobile-detect-import
  17. a)
  18. Configure the 'Enable automatic version check'.
  19. b)
  20. The 'Refresh Mobile Detect' button can be used for a manual version check.
  21. On a fresh installation or a initial use of the Mobile Detect class
  22. it is recommended to check for a new version manually.
  23. - Multi site installation
  24. Administer Mobile Detect Import and the version files in
  25. the default site installation.
  26. HOW WORKS
  27. The import function needs the enabled automatic version check or the
  28. manually 'Refresh Mobile Detect' action in the module administration.
  29. If a new version of the Mobile Detect class is detected, this version
  30. will be downloaded and stored in the directory
  31. sites/default/files/Mobile_Detect as file Mobile_Detect.php.
  32. a)
  33. When a new version is available, it is reported on
  34. the 'Status Report' page,
  35. the administration page of the Mobile Detect Import module.
  36. b)
  37. When a new version is reported
  38. 1)
  39. copy the stored file to the Mobile Detect library directory
  40. 2)
  41. OR download the new version an store the new Mobile Detect class file
  42. in the Mobile Detect library directory.
  43. DEVELOPMENT
  44. The machine name of the Mobile Detect library: Mobile_Detect
  45. Example PHP code to get library informations:
  46. @code
  47. $library = libraries_detect('Mobile_Detect');
  48. @endcode
  49. LIMITATION
  50. No direct import of the Mobile Detect class in the library directory.