Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* NEW */
- function screen_settings($current, $screen) {
- global $Db, $Field;
- $Db -> model = $Field -> model;
- $conditions['1'] = "1 AND `slug` != 'email'";
- $fields = $Db -> find_all($conditions, false, array('title', "ASC"));
- $current .= $this -> render('subscribers' . DS . 'screen-options', array('fields' => $fields), false, 'admin');
- return $current;
- }
- /* OLD */
- function screen_settings($current, $screen) {
- switch ($screen -> id) {
- case 'newsletters_page_newsletters-subscribers' :
- global $Db, $Field;
- $Db -> model = $Field -> model;
- $conditions['1'] = "1 AND `slug` != 'email'";
- $fields = $Db -> find_all($conditions, false, array('title', "ASC"));
- $current .= $this -> render('subscribers' . DS . 'screen-options', array('fields' => $fields), false, 'admin');
- break;
- }
- return $current;
- }
Advertisement
Add Comment
Please, Sign In to add comment