You are here

manualcrop.api.php in Manual Crop 7

API documentation for Manual Crop

File

manualcrop.api.php
View source
<?php

/**
 * @file
 * API documentation for Manual Crop
 */

/**
 * Inform Manual Crop about supported widgets and their settings.
 */
function hook_manualcrop_supported_widgets() {
  return array(
    'image_image' => array(
      'thumblist',
      'inline_crop',
      'instant_crop',
    ),
  );
}

/**
 * Allows other modules to alter the list of Manual Crop supported widgets
 * and their settings.
 *
 * @see hook_manualcrop_supported_widgets()
 */
function hook_manualcrop_supported_widgets_alter(&$widgets) {
  $widgets['widget_name'] = array(
    'thumblist',
  );
}

Functions

Namesort descending Description
hook_manualcrop_supported_widgets Inform Manual Crop about supported widgets and their settings.
hook_manualcrop_supported_widgets_alter Allows other modules to alter the list of Manual Crop supported widgets and their settings.