Example #1
0
 function update_objects($action = 'draft')
 {
     $all = pl_opt($this->slug);
     if ($action == 'publish') {
         $all['live'] = $all['draft'];
     } elseif ($action == 'revert') {
         $all['draft'] = $all['live'];
     } else {
         $all['draft'] = $this->objects;
     }
     pl_opt_update($this->slug, $all);
 }
Example #2
0
 function revert_global($map)
 {
     pl_revert_settings();
     pl_opt_update($this->slug, false);
 }