function views_plugin_display_attachment::attachment_positions in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 plugins/views_plugin_display_attachment.inc \views_plugin_display_attachment::attachment_positions()
- 7.3 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 - 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;
}