plugins/ProfileExtender/class.profileextender.plugin.php
public function SettingsController_ProfileFieldDelete_Create($Sender, $Args) {
      $Sender->Permission('Garden.Settings.Manage');
      $Sender->SetData('Title', 'Delete Field');
      if (isset($Args[0])) {
         if ($Sender->Form->IsPostBack()) {
            RemoveFromConfig('ProfileExtender.Fields.'.$Args[0]);
            $Sender->RedirectUrl = Url('/settings/profileextender');
         }
         else
            $Sender->SetData('Field', $this->GetProfileField($Args[0]));
      }
      $Sender->Render('delete', '', 'plugins/ProfileExtender');
   }
public function SettingsController_ProfileFieldDelete_Create($Sender, $Args) {
      $Sender->Permission('Garden.Settings.Manage');
      $Sender->SetData('Title', 'Delete Field');
      if (isset($Args[0])) {
         if ($Sender->Form->IsPostBack()) {
            RemoveFromConfig('ProfileExtender.Fields.'.$Args[0]);
            $Sender->RedirectUrl = Url('/settings/profileextender');
         }
         else
            $Sender->SetData('Field', $this->GetProfileField($Args[0]));
      }
      $Sender->Render('delete', '', 'plugins/ProfileExtender');
   }
public function SettingsController_ProfileFieldDelete_Create ( $ Sender , $ Args ) { $ Sender -> Permission ( 'Garden.Settings.Manage' ) ; $ Sender -> SetData ( 'Title' , 'Delete Field' ) ; if ( isset ( $ Args [ 0 ] ) ) { if ( $ Sender -> Form -> IsPostBack ( ) ) { RemoveFromConfig ( 'ProfileExtender.Fields.' . $ Args [ 0 ] ) ; $ Sender -> RedirectUrl = Url ( '/settings/profileextender' ) ; } else $ Sender -> SetData ( 'Field' , $ this -> GetProfileField ( $ Args [ 0 ] ) ) ; } $ Sender -> Render ( 'delete' , '' , 'plugins/ProfileExtender' ) ; }
Delete a field.
Delete a field .