You are here

function imageapi_optimize_pipeline_usage_list in Image Optimize (or ImageAPI Optimize) 7.2

Menu callback; Listing of all current image pipeline usage.

1 string reference to 'imageapi_optimize_pipeline_usage_list'
imageapi_optimize_menu in ./imageapi_optimize.module
Implements hook_menu().

File

./imageapi_optimize.admin.inc, line 24

Code

function imageapi_optimize_pipeline_usage_list() {
  $page = array();

  // Add a table of pipeline usage.
  $usage = imageapi_optimize_pipeline_usage();
  $page['imageapi_optimize_pipeline_usage']['inner'] = array(
    '#theme' => 'imageapi_optimize_pipeline_usage',
    '#usages' => $usage,
    '#attached' => array(
      'css' => array(
        drupal_get_path('module', 'image') . '/image.admin.css' => array(),
      ),
    ),
    '#description' => t('This is a listing of all defined image styles, if they use an ImageAPI Optimize pipeline, then that will be listed in the pipeline column.'),
  );
  return $page;
}