Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * RKtoken Type
- */
- if (!class_exists('Bxcft_Field_Type_RKToken'))
- {
- class Bxcft_Field_Type_RKToken extends BP_XProfile_Field_Type
- {
- public function __construct() {
- parent::__construct();
- $this->name = _x( 'RKToken', 'xprofile field type', 'bxcft' );
- $this->set_format( '/[-0-9a-zA-Z.+_]$/', 'replace' );
- do_action( 'bp_xprofile_field_type_text', $this );
- }
- public function admin_field_html (array $raw_properties = array ())
- {
- $html = $this->get_edit_field_html_elements( array_merge(
- array( 'type' => 'text' ),
- $raw_properties
- ) );
- ?>
- <input <?php echo $html; ?> />
- <?php
- }
- public function edit_field_html (array $raw_properties = array ())
- {
- if (isset($_GET['var1'])) {
- echo "OK";
- }
- else {
- print_r($_GET);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement