function hook_iek_overlay in Image effect kit 8
Same name and namespace in other branches
- 7 iek.api.php \hook_iek_overlay()
Allows modules to add more custom image overlays.
1 function implements hook_iek_overlay()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- iek_iek_overlay in ./iek.module 
- Implements hook_iek_overlay().
1 invocation of hook_iek_overlay()
- iek_get_overlays in ./iek.module 
- Gets a list of available image overlays.
File
- ./iek.api.php, line 37 
- Hooks provided by iek module.
Code
function hook_iek_overlay() {
  $path = drupal_get_path('module', 'iek') . '/overlays';
  return [
    'basic' => [
      'name' => 'basic',
      'title' => t('Basic'),
      'children' => [
        'basic_001_1024x768' => [
          'name' => 'basic_001_1024x768',
          'title' => t('Basic 001 - 1024x768'),
          'path' => $path . '/basic',
          'file' => 'basic-001-1024x768.png',
        ],
        'basic_001_768x1024' => [
          'name' => 'basic_001_768x1024',
          'title' => t('Basic 001 - 768x1024'),
          'path' => $path . '/basic',
          'file' => 'basic-001-768x1024.png',
        ],
        'basic_001_600x600' => [
          'name' => 'basic_001_600x600',
          'title' => t('Basic 001 - 600x600'),
          'path' => $path . '/basic',
          'file' => 'basic-001-600x600.png',
        ],
      ],
    ],
  ];
}