/**
  * Save the page of settings.
  */
 function execute()
 {
     // Save the block plugin layout settings.
     $blockVars = array('blockSelectLeft', 'blockUnselected', 'blockSelectRight');
     foreach ($blockVars as $varName) {
         ${$varName} = array_map('urldecode', split(' ', Request::getUserVar($varName)));
     }
     $plugins =& PluginRegistry::loadCategory('blocks');
     foreach ($plugins as $key => $junk) {
         $plugin =& $plugins[$key];
         // Ref hack
         $plugin->setEnabled(!in_array($plugin->getName(), $blockUnselected));
         if (in_array($plugin->getName(), $blockSelectLeft)) {
             $plugin->setBlockContext(BLOCK_CONTEXT_LEFT_SIDEBAR);
             $plugin->setSeq(array_search($key, $blockSelectLeft));
         } else {
             if (in_array($plugin->getName(), $blockSelectRight)) {
                 $plugin->setBlockContext(BLOCK_CONTEXT_RIGHT_SIDEBAR);
                 $plugin->setSeq(array_search($key, $blockSelectRight));
             }
         }
         unset($plugin);
     }
     return parent::execute();
 }