panels_page.install
Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010 function panels_page_install() {
00011 db_query("UPDATE {system} SET weight = 10 WHERE name = 'panels_page'");
00012 }
00013
00014 function panels_page_update_5000() {
00015 $ret = array();
00016 $ret[] = update_sql("UPDATE {system} SET weight = 10 WHERE name = 'panels_page'");
00017 return $ret;
00018 }
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 function panels_page_update_5001() {
00033 $result = db_query('SELECT pid, access from {panels_page}');
00034 while ($row = db_fetch_object($result)) {
00035 $access = str_replace(' ', '', $row->access);
00036 $row->access = implode(', ', explode(',', $access));
00037 db_query("UPDATE {panels_page} SET access = '%s' WHERE pid = %d", $row->access, $row->pid);
00038 }
00039 return array();
00040 }