Ignore:
Timestamp:
Aug 1, 2012, 9:00:54 PM (12 years ago)
Author:
rvelices
Message:

feature 2708: in admin, display allowed custom derivatives and ability to delete them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/admin/include/configuration_sizes_process.inc.php

    r14649 r17295  
    229229  }
    230230
     231  foreach( array_keys(ImageStdParams::$custom) as $custom)
     232  {
     233    if (isset($_POST['delete_custom_derivative_'.$custom]))
     234    {
     235      $changed_types[] = $custom;
     236      unset(ImageStdParams::$custom[$custom]);
     237    }
     238  }
     239
    231240  ImageStdParams::set_and_save($enabled_by);
    232241  if (count($disabled) == 0)
Note: See TracChangeset for help on using the changeset viewer.