Guest User

Untitled

a guest
Aug 10th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1. /* NEW */
  2.     function screen_settings($current, $screen) {          
  3.                 global $Db, $Field;
  4.                 $Db -> model = $Field -> model;
  5.                 $conditions['1'] = "1 AND `slug` != 'email'";
  6.                 $fields = $Db -> find_all($conditions, false, array('title', "ASC"));
  7.            
  8.                 $current .= $this -> render('subscribers' . DS . 'screen-options', array('fields' => $fields), false, 'admin');
  9.         return $current;
  10.     }
  11.  
  12. /* OLD */
  13.  
  14.     function screen_settings($current, $screen) {          
  15.         switch ($screen -> id) {
  16.             case 'newsletters_page_newsletters-subscribers'             :
  17.                 global $Db, $Field;
  18.                 $Db -> model = $Field -> model;
  19.                 $conditions['1'] = "1 AND `slug` != 'email'";
  20.                 $fields = $Db -> find_all($conditions, false, array('title', "ASC"));
  21.            
  22.                 $current .= $this -> render('subscribers' . DS . 'screen-options', array('fields' => $fields), false, 'admin');
  23.                 break;
  24.         }
  25.         return $current;
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment