You are here

function hook_styles_styles in Styles 6

Same name and namespace in other branches
  1. 6.2 includes/styles.api.php \hook_styles_styles()
  2. 7.2 includes/styles.api.php \hook_styles_styles()
  3. 7 styles.api.php \hook_styles_styles()
1 invocation of hook_styles_styles()
styles_styles in ./styles.module
Get an array of all available styles.

File

includes/styles.api.php, line 52
Hooks available for modules to implement Styles functionality.

Code

function hook_styles_styles() {
  $styles = array();
  foreach (image_styles() as $style_name => $style) {
    $styles[$style_name] = $style;
  }
  return array(
    'media' => array(
      'image' => $styles,
    ),
  );
}