Example #1
0
 /**
  * Add settings fields of all available channels.
  * @param mixed $form
  */
 private function extendedSettingFields($form)
 {
     if (!$form->model instanceof \DMA\Friends\Models\Settings) {
         return;
     }
     if ($form->getContext() != 'update') {
         return;
     }
     $form->addFields(\Postman::getChannelSettingFields(), 'primary');
 }