function supersized_overlay_options in Supersized 8
Same name and namespace in other branches
- 7 supersized.module \supersized_overlay_options()
Return available overlay patterns.
2 calls to supersized_overlay_options()
- supersized_field_instance_settings_form in ./
supersized.field.inc - Implements hook_field_instance_settings_form().
- supersized_node_settings_form in ./
supersized.module - Supersized setting form for node.
File
- ./
supersized.module, line 978 - Supersized module file.
Code
function supersized_overlay_options() {
$options['none'] = t('None');
$overlays = supersized_overlay();
foreach ($overlays as $k => $overlay) {
$path = url($overlay['file path'] . '/' . $overlay['file']);
$options[$k] = '<div class="supersized-overlay-option"><div class="supersized-overlay-preview" style="background: url(' . $path . ') transparent repeat;"></div>' . $overlay['name'] . '</div>';
}
return $options;
}