Ignore:
Timestamp:
Jan 19, 2013, 12:58:16 AM (11 years ago)
Author:
julien1311
Message:

[mobile_theme_for_tablets] small changes

Location:
extensions/Mobile_Theme_for_Tablets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mobile_Theme_for_Tablets/include/functions.inc.php

    r19815 r20256  
    11<?
     2/**
     3 * activate the mobile theme
     4 */
    25function mtt_activate_mobile_theme() {
    36        global $conf;
  • extensions/Mobile_Theme_for_Tablets/install/functions.inc.php

    r19815 r20256  
    11<?php
     2/**
     3 * create the entry in the config table
     4 * @param string default parameters
     5 */
    26function mtt_install($config) {
    37        $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("mobile_theme_for_tablets" ,"'.pwg_db_real_escape_string(serialize($config)).'", "Mobile Theme for Tablets plugin parameters");';
     
    59}
    610
     11/**
     12 * update the config when plugin is activated or updated
     13 */
    714function mtt_update_db() {
    815        global $conf;
     
    2734}
    2835
     36/**
     37 * delete the config
     38 * @param string param column of the table
     39 */
    2940function mtt_delete_conf($where) {
    3041        $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE (param="'.$where.'");';
Note: See TracChangeset for help on using the changeset viewer.