aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration/data/v310/profilefield_googleplus.php
diff options
context:
space:
mode:
authorShitiz Garg <mail@dragooon.net>2014-06-18 19:36:14 +0530
committerShitiz Garg <mail@dragooon.net>2014-06-21 03:31:23 +0530
commitab83995f4493f78aec3d3281650c0f9d8bb74843 (patch)
treeab41c905f4b8012ff0fea135ad6680fca4322de7 /phpBB/phpbb/db/migration/data/v310/profilefield_googleplus.php
parent3cebb18ce8e8e97a6b95b32dbab5740489c840ea (diff)
downloadforums-ab83995f4493f78aec3d3281650c0f9d8bb74843.tar
forums-ab83995f4493f78aec3d3281650c0f9d8bb74843.tar.gz
forums-ab83995f4493f78aec3d3281650c0f9d8bb74843.tar.bz2
forums-ab83995f4493f78aec3d3281650c0f9d8bb74843.tar.xz
forums-ab83995f4493f78aec3d3281650c0f9d8bb74843.zip
[ticket/12730] Add a Google+ field by default
PHPBB3-12730
Diffstat (limited to 'phpBB/phpbb/db/migration/data/v310/profilefield_googleplus.php')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/profilefield_googleplus.php60
1 files changed, 60 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/profilefield_googleplus.php b/phpBB/phpbb/db/migration/data/v310/profilefield_googleplus.php
new file mode 100644
index 0000000000..8f9a9ed32f
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v310/profilefield_googleplus.php
@@ -0,0 +1,60 @@
+<?php
+/**
+*
+* This file is part of the phpBB Forum Software package.
+*
+* @copyright (c) phpBB Limited <https://www.phpbb.com>
+* @license GNU General Public License, version 2 (GPL-2.0)
+*
+* For full copyright and license information, please see
+* the docs/CREDITS.txt file.
+*
+*/
+
+namespace phpbb\db\migration\data\v310;
+
+class profilefield_googleplus extends \phpbb\db\migration\profilefield_base_migration
+{
+ static public function depends_on()
+ {
+ return array(
+ '\phpbb\db\migration\data\v310\profilefield_types',
+ '\phpbb\db\migration\data\v310\profilefield_show_novalue',
+ );
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('custom', array(array($this, 'create_custom_field'))),
+ );
+ }
+
+ protected $profilefield_name = 'phpbb_googleplus';
+
+ protected $profilefield_database_type = array('VCHAR', '');
+
+ protected $profilefield_data = array(
+ 'field_name' => 'phpbb_googleplus',
+ 'field_type' => 'profilefields.type.googleplus',
+ 'field_ident' => 'phpbb_googleplus',
+ 'field_length' => '20',
+ 'field_minlen' => '3',
+ 'field_maxlen' => '',
+ 'field_novalue' => '',
+ 'field_default_value' => '',
+ 'field_validation' => '[\w]+',
+ 'field_required' => 0,
+ 'field_show_novalue' => 0,
+ 'field_show_on_reg' => 0,
+ 'field_show_on_pm' => 1,
+ 'field_show_on_vt' => 1,
+ 'field_show_profile' => 1,
+ 'field_hide' => 0,
+ 'field_no_view' => 0,
+ 'field_active' => 1,
+ 'field_is_contact' => 1,
+ 'field_contact_desc' => 'VIEW_GOOGLEPLUS_PROFILE',
+ 'field_contact_url' => 'http://plus.google.com/%s',
+ );
+} \ No newline at end of file