function views_plugin_display_attachment::attachment_positions
Same name in other branches
- 7.x-3.x plugins/views_plugin_display_attachment.inc \views_plugin_display_attachment::attachment_positions()
2 calls to views_plugin_display_attachment::attachment_positions()
- views_plugin_display_attachment::options_form in plugins/
views_plugin_display_attachment.inc - Provide the default form for setting options.
- views_plugin_display_attachment::options_summary in plugins/
views_plugin_display_attachment.inc - Provide the summary for attachment options in the views UI.
File
-
plugins/
views_plugin_display_attachment.inc, line 34
Class
- views_plugin_display_attachment
- The plugin that handles an attachment display.
Code
function attachment_positions($position = NULL) {
$positions = array(
'before' => t('Before'),
'after' => t('After'),
'both' => t('Both'),
);
if ($position) {
return $positions[$position];
}
return $positions;
}