1 views_plugin_display_attachment.inc views_plugin_display_attachment::attachment_positions($position = NULL)

File

core/modules/views/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;
}