Go to the source code of this file.
Functions | |
| panels_page_install () | |
| panels_page_update_5000 () | |
| panels_page_update_5001 () | |
| panels_page_install | ( | ) |
Implementation of hook_install()
Note that the panels page tables are largely owned by panels.module
Definition at line 10 of file panels_page.install.
| panels_page_update_5000 | ( | ) |
Definition at line 14 of file panels_page.install.
00014 { 00015 $ret = array(); 00016 $ret[] = update_sql("UPDATE {system} SET weight = 10 WHERE name = 'panels_page'"); 00017 return $ret; 00018 }
| panels_page_update_5001 | ( | ) |
Strips out any whitespace in the access string.
Due to developer oversight, the format of access field string changed from ', ' to ',' for several months of the -dev version. Ordinarily, we do not accommodate changes made in the -dev version in later update functions, as it both promotes bad habits on the part of module users and tends to create database inconsistencies. However, in this case, the improper delimiter was in place for long enough that it merits correction, especially because the correction can be made non-destructively and transparently for any site that never used the bad -dev.
Definition at line 32 of file panels_page.install.
00032 { 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 }
1.5.6