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