Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const USE_VKONTAKTE_YES = 1;
- const USE_VKONTAKTE_NO = 0;
- const USE_TWITTER_YES = 1;
- const USE_TWITTER_NO = 0;
- public static function getUseVkontakteOptions($selected = null)
- {
- $return[self::USE_VKONTAKTE_YES] = tc('Yes');
- $return[self::USE_VKONTAKTE_NO] = tc('No');
- if ($selected !== null) {
- if (isset($return[$selected]))
- return $return[$selected];
- return '-';
- }
- return $return;
- }
- public static function getUseTwitterOptions($selected = null)
- {
- $return[self::USE_TWITTER_YES] = tc('Yes');
- $return[self::USE_TWITTER_NO] = tc('No');
- if ($selected !== null) {
- if (isset($return[$selected]))
- return $return[$selected];
- return '-';
- }
- return $return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement