You are here

function file_styles_styles_styles in Styles 7

Implements hook_styles_styles().

File

contrib/file_styles/file_styles.module, line 169
File widget formatter definitions.

Code

function file_styles_styles_styles() {
  $styles = array();
  foreach (image_styles() as $style_name => $style) {

    // Save the module & storage for the Image module namespace.
    $style['image_module'] = $style['module'];
    $style['image_storage'] = $style['storage'];
    $styles[$style_name] = $style;
  }
  $styles['original'] = array(
    'effects' => array(),
    'name' => 'original',
    'module' => 'file_styles',
  );
  $default_styles = $styles;
  $all_styles = array(
    'file' => array(
      'containers' => array(
        'image' => array(
          'styles' => $styles,
        ),
      ),
    ),
  );
  $all_styles['file']['containers']['video'] = array(
    'styles' => file_styles_video_default_effects(),
  );
  $all_styles['file']['containers']['default'] = array(
    'styles' => $default_styles,
  );
  return $all_styles;
}