function 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 48

Class

views_plugin_display_attachment
The plugin that handles an attachment display.

Code

public function attachment_positions($position = NULL) {
    $positions = array(
        'before' => t('Before'),
        'after' => t('After'),
        'both' => t('Both'),
    );
    if ($position) {
        return $positions[$position];
    }
    return $positions;
}