You are here

function imagefield_crop_preset_list in Imagefield Crop 7.3

Implements menu callback imagefield_crop_preset_list().

Return value

string

1 string reference to 'imagefield_crop_preset_list'
imagefield_crop_menu in ./imagefield_crop.module
Implements hook_menu().

File

./imagefield_crop.module, line 999

Code

function imagefield_crop_preset_list() {
  $presets = db_select('imagefield_crop_preset', 'icpr')
    ->fields('icpr', array(
    'pid',
    'name',
  ))
    ->execute()
    ->fetchAllKeyed();
  return theme('imagefield_crop_preset_list', array(
    'presets' => $presets,
  ));
}