| @@ -7,34 +7,13 @@ | ||
| 7 | 7 | protected $priority = 'readmore'; |
| 8 | 8 | protected $is_native = false; |
| 9 | 9 | |
| 10 | 10 | |
| 11 | - /** Function to set default for custom networks to the data that was imported from remote. | |
| 12 | - * | |
| 13 | - * Start state of custom network is all these defaults, but no save on the main settings branch | |
| 14 | - */ | |
| 15 | - public function get_all_defaults() | |
| 11 | +/* public function set() | |
| 16 | 12 | { |
| 17 | - $network = MBSocial()->networks()->getNetworkSettings(); | |
| 18 | - //var_dump($network); var_dump($this->network); | |
| 19 | - if (isset($network['custom'][$this->network])) | |
| 20 | - { | |
| 21 | 13 | |
| 22 | - $settings = $network['custom'][$this->network]; | |
| 23 | - | |
| 24 | - $all_options = $this->get_all_options(); | |
| 25 | - // echo "<PRE>"; print_R($settings); print_r($all_options); | |
| 26 | - foreach($all_options as $option => $value) | |
| 27 | - { | |
| 28 | - if (isset($settings[$option])) | |
| 29 | - { | |
| 30 | - $all_options[$option] = $settings[$option]; | |
| 31 | - } | |
| 32 | - } | |
| 33 | - } | |
| 34 | - return $all_options; | |
| 35 | 14 | } |
| 36 | - | |
| 15 | +*/ | |
| 37 | 16 | public function load_settings($settings) |
| 38 | 17 | { |
| 39 | 18 | parent::load_settings($settings); |
| 40 | 19 | |