function views_plugin_display_attachment::attachment_positions
3.x views_plugin_display_attachment.inc | views_plugin_display_attachment::attachment_positions($position = NULL) |
2.x views_plugin_display_attachment.inc | views_plugin_display_attachment::attachment_positions($position = NULL) |
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 35 - Contains the attachment display plugin.
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;
}