Permalink
Browse files

Fix installer issue step 4

#3247?codekitCB=417737337.007735#issuecomment-38970490
  • Loading branch information...
Ryan Thompson
Ryan Thompson committed Mar 28, 2014
1 parent 08ddb42 commit 5bd870626a82a5f3b5bd5840d5de7403fcde67b4
@@ -17,31 +17,31 @@ class Theme_Base extends AbstractTheme
'default' => 'fabric',
'type' => 'select',
'options' => 'black=Black|fabric=Fabric|graph=Graph|leather=Leather|noise=Noise|texture=Texture',
- 'required' => true
+ 'is_required' => true
),
'slider' => array(
'title' => 'Slider',
'description' => 'Would you like to display the slider on the homepage?',
'default' => 'yes',
'type' => 'radio',
'options' => 'yes=Yes|no=No',
- 'required' => true
+ 'is_required' => true
),
'color' => array(
'title' => 'Default Theme Color',
'description' => 'This changes things like background color, link colors etc…',
'default' => 'pink',
'type' => 'select',
'options' => 'red=Red|orange=Orange|yellow=Yellow|green=Green|blue=Blue|pink=Pink',
- 'required' => true
+ 'is_required' => true
),
'show_breadcrumbs' => array(
'title' => 'Do you want to show breadcrumbs?',
'description' => 'If selected it shows a string of breadcrumbs at the top of the page.',
'default' => 'yes',
'type' => 'radio',
'options' => 'yes=Yes|no=No',
- 'required' => true
+ 'is_required' => true
),
);
}
@@ -224,7 +224,7 @@ public function register(AbstractTheme $theme, $slug)
'value' => $option['default'],
'type' => $option['type'],
'options' => $option['options'],
- 'required' => $option['required'],
+ 'is_required' => $option['is_required'],
));
}
}
@@ -207,22 +207,22 @@ public function addFields()
'name' => 'lang:blog:title_label',
'slug' => 'title',
'type' => 'text',
- 'required' => true,
+ 'is_required' => true,
'locked' => true,
),
array(
'name' => 'lang:blog:intro_label',
'slug' => 'intro',
'type' => 'wysiwyg',
- 'required' => true,
+ 'is_required' => true,
'locked' => true,
'extra' => array('editor_type' => 'simple', 'allow_tags' => 'y'),
),
array(
'name' => 'lang:global:slug',
'slug' => 'slug',
'type' => 'slug',
- 'required' => true,
+ 'is_required' => true,
'unique' => true,
'locked' => true,
'extra' => array('slug_field' => 'title'),
@@ -231,7 +231,7 @@ public function addFields()
'name' => 'lang:blog:body_label',
'slug' => 'body',
'type' => 'wysiwyg',
- 'required' => true,
+ 'is_required' => true,
'locked' => true,
'extra' => array('editor_type' => 'advanced'),
),
@@ -244,7 +244,7 @@ public function addFields()
'name' => 'lang:blog:author_label',
'slug' => 'author',
'type' => 'user',
- 'required' => true,
+ 'is_required' => true,
'locked' => true,
),
array(
@@ -278,7 +278,7 @@ public function addFields()
'name' => 'lang:blog:category_label',
'slug' => 'category',
'type' => 'relationship',
- 'required' => true,
+ 'is_required' => true,
'locked' => true,
'extra' => array(
'title_field' => 'title',
@@ -119,7 +119,7 @@ public function install($pdb, $schema)
'default' => '',
'value' => '',
'options' => '',
- 'required' => 0,
+ 'is_required' => 0,
'is_gui' => 1,
'module' => 'integration',
'order' => 981,
@@ -132,7 +132,7 @@ public function install($pdb, $schema)
'default' => true,
'value' => true,
'options' => '1=Enabled|0=Disabled',
- 'required' => 1,
+ 'is_required' => 1,
'is_gui' => 1,
'module' => 'comments',
'order' => 968,
@@ -145,7 +145,7 @@ public function install($pdb, $schema)
'default' => true,
'value' => true,
'options' => '1=Enabled|0=Disabled',
- 'required' => 1,
+ 'is_required' => 1,
'is_gui' => 1,
'module' => 'comments',
'order' => 967,
@@ -158,7 +158,7 @@ public function install($pdb, $schema)
'default' => 'ASC',
'value' => 'ASC',
'options' => 'ASC=Oldest First|DESC=Newest First',
- 'required' => 1,
+ 'is_required' => 1,
'is_gui' => 1,
'module' => 'comments',
'order' => 966,
@@ -171,7 +171,7 @@ public function install($pdb, $schema)
'default' => '0',
'value' => '0',
'options' => '0=Text Only|1=Allow Markdown',
- 'required' => 1,
+ 'is_required' => 1,
'is_gui' => 1,
'module' => 'comments',
'order' => 965,
@@ -131,7 +131,7 @@ public function install($pdb, $schema)
'default' => '480',
'value' => '480',
'options' => '0=no-cache|1=1-minute|60=1-hour|180=3-hour|480=8-hour|1440=1-day|43200=30-days',
- 'required' => true,
+ 'is_required' => true,
'is_gui' => true,
'module' => 'files',
'order' => 986,
@@ -144,7 +144,7 @@ public function install($pdb, $schema)
'default' => '0',
'value' => '0',
'options' => 'amazon-s3=Amazon S3|rackspace-cf=Rackspace Cloud Files',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'files',
'order' => 994,
@@ -157,7 +157,7 @@ public function install($pdb, $schema)
'default' => '',
'value' => '',
'options' => '',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'files',
'order' => 993,
@@ -170,7 +170,7 @@ public function install($pdb, $schema)
'default' => '',
'value' => '',
'options' => '',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'files',
'order' => 992,
@@ -183,7 +183,7 @@ public function install($pdb, $schema)
'default' => 'US',
'value' => 'US',
'options' => 'US=United States|EU=Europe',
- 'required' => true,
+ 'is_required' => true,
'is_gui' => true,
'module' => 'files',
'order' => 991,
@@ -196,7 +196,7 @@ public function install($pdb, $schema)
'default' => 'http://{{ bucket }}.s3.amazonaws.com/',
'value' => 'http://{{ bucket }}.s3.amazonaws.com/',
'options' => '',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'files',
'order' => 991,
@@ -210,7 +210,7 @@ public function install($pdb, $schema)
'default' => '',
'value' => '',
'options' => '',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'files',
'order' => 990,
@@ -223,7 +223,7 @@ public function install($pdb, $schema)
'default' => '',
'value' => '',
'options' => '',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'files',
'order' => 989,
@@ -236,7 +236,7 @@ public function install($pdb, $schema)
'default' => '5',
'value' => '5',
'options' => '',
- 'required' => true,
+ 'is_required' => true,
'is_gui' => true,
'module' => 'files',
'order' => 987,
@@ -1,6 +1,9 @@
<?php
use Pyro\Module\Addons\AbstractModule;
+use Pyro\Module\Streams\Stream\StreamModel;
+use Pyro\Module\Streams\Field\FieldModel;
+use Pyro\Module\Streams\Stream\StreamSchema;
/**
* Redirects module
@@ -141,9 +144,9 @@ public function install($pdb, $schema)
FieldModel::addFields($fields, null, 'redirects');
// Redirects assignments
- FieldModel::assignField('redirects', 'redirects', 'from', array('required' => true));
- FieldModel::assignField('redirects', 'redirects', 'to', array('required' => true));
- FieldModel::assignField('redirects', 'redirects', 'type', array('required' => true));
+ FieldModel::assignField('redirects', 'redirects', 'from', array('is_required' => true));
+ FieldModel::assignField('redirects', 'redirects', 'to', array('is_required' => true));
+ FieldModel::assignField('redirects', 'redirects', 'type', array('is_required' => true));
return true;
}
@@ -171,12 +171,12 @@ public function install($pdb, $schema)
FieldModel::addFields($fields, null, 'templates');
// Templates assignments
- FieldModel::assignField('templates', 'templates', 'name', array('required' => true));
- FieldModel::assignField('templates', 'templates', 'slug', array('required' => true));
- FieldModel::assignField('templates', 'templates', 'lang', array('required' => true));
- FieldModel::assignField('templates', 'templates', 'description', array('required' => true));
- FieldModel::assignField('templates', 'templates', 'subject', array('required' => true));
- FieldModel::assignField('templates', 'templates', 'body', array('required' => true));
+ FieldModel::assignField('templates', 'templates', 'name', array('is_required' => true));
+ FieldModel::assignField('templates', 'templates', 'slug', array('is_required' => true));
+ FieldModel::assignField('templates', 'templates', 'lang', array('is_required' => true));
+ FieldModel::assignField('templates', 'templates', 'description', array('is_required' => true));
+ FieldModel::assignField('templates', 'templates', 'subject', array('is_required' => true));
+ FieldModel::assignField('templates', 'templates', 'body', array('is_required' => true));
// Non streams stuff
$schema->table(
@@ -181,7 +181,7 @@ public function install($pdb, $schema)
'default' => true,
'value' => '',
'options' => '1=Enabled|0=Disabled',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'users',
'order' => 964,
@@ -194,7 +194,7 @@ public function install($pdb, $schema)
'default' => true,
'value' => '',
'options' => '1=Enabled|0=Disabled',
- 'required' => true,
+ 'is_required' => true,
'is_gui' => true,
'module' => 'users',
'order' => 963,
@@ -207,7 +207,7 @@ public function install($pdb, $schema)
'default' => true,
'value' => '',
'options' => '1=Required|0=Optional',
- 'required' => true,
+ 'is_required' => true,
'is_gui' => true,
'module' => 'users',
'order' => 962,
@@ -220,7 +220,7 @@ public function install($pdb, $schema)
'default' => true,
'value' => '',
'options' => '0=activate_by_admin|1=activate_by_email|2=no_activation',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'users',
'order' => 961,
@@ -233,7 +233,7 @@ public function install($pdb, $schema)
'default' => true,
'value' => '',
'options' => '1=Enabled|0=Disabled',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'users',
'order' => 960,
@@ -246,7 +246,7 @@ public function install($pdb, $schema)
'default' => true,
'value' => '',
'options' => '1=Enabled|0=Disabled',
- 'required' => false,
+ 'is_required' => false,
'is_gui' => true,
'module' => 'users',
'order' => 959,
@@ -277,21 +277,21 @@ public function install($pdb, $schema)
'slug' => 'display_name',
'type' => 'text',
'extra' => array('max_length' => 50),
- 'required' => true,
+ 'is_required' => true,
),
array(
'name' => 'lang:user:first_name_label',
'slug' => 'first_name',
'type' => 'text',
'extra' => array('max_length' => 50),
- 'required' => true,
+ 'is_required' => true,
),
array(
'name' => 'lang:user:last_name_label',
'slug' => 'last_name',
'type' => 'text',
'extra' => array('max_length' => 50),
- 'required' => true,
+ 'is_required' => true,
),
array(
'name' => 'lang:user:profile_company',
@@ -136,7 +136,7 @@ public function install($pdb, $schema)
'slug' => 'name',
'type' => 'slug',
'title_column' => true,
- 'required' => true,
+ 'is_required' => true,
'unique' => true,
'assign' => 'variables',
'extra' => array(
@@ -147,7 +147,7 @@ public function install($pdb, $schema)
'name' => 'lang:streams:column_data',
'slug' => 'data',
'type' => 'field',
- 'required' => true,
+ 'is_required' => true,
'assign' => 'variables',
'extra' => array(
'max_length' => 100,
@@ -53,7 +53,7 @@ public function install($pdb, $schema)
'default' => '',
'value' => "{{# this is a wysiwyg-simple editor customized for the blog module (it allows images to be inserted) #}}\n$('textarea.blog.wysiwyg-simple').ckeditor({\n toolbar: [\n ['pyroimages'],\n ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink']\n ],\n extraPlugins: 'pyroimages',\n width: '99%',\n height: 100,\n dialog_backgroundCoverColor: '#000',\n defaultLanguage: '{{ helper:config item=\"default_language\" }}',\n language: '{{ global:current_language }}'\n});\n\n{{# this is the config for all wysiwyg-simple textareas #}}\n$('textarea.wysiwyg-simple').ckeditor({\n toolbar: [\n ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink']\n ],\n width: '99%',\n height: 100,\n dialog_backgroundCoverColor: '#000',\n defaultLanguage: '{{ helper:config item=\"default_language\" }}',\n language: '{{ global:current_language }}'\n});\n\n{{# and this is the advanced editor #}}\n$('textarea.wysiwyg-advanced').ckeditor({\n toolbar: [\n ['Maximize'],\n ['pyroimages', 'pyrofiles'],\n ['Cut','Copy','Paste','PasteFromWord'],\n ['Undo','Redo','-','Find','Replace'],\n ['Link','Unlink'],\n ['Table','HorizontalRule','SpecialChar'],\n ['Bold','Italic','StrikeThrough'],\n ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl'],\n ['Format', 'FontSize', 'Subscript','Superscript', 'NumberedList','BulletedList','Outdent','Indent','Blockquote'],\n ['ShowBlocks', 'RemoveFormat', 'Source']\n ],\n extraPlugins: 'pyroimages,pyrofiles',\n width: '99%',\n height: 400,\n dialog_backgroundCoverColor: '#000',\n removePlugins: 'elementspath',\n defaultLanguage: '{{ helper:config item=\"default_language\" }}',\n language: '{{ global:current_language }}'\n});",
'options' => '',
- 'required' => true,
+ 'is_required' => true,
'is_gui' => true,
'module' => 'wysiwyg',
'order' => 993,
Oops, something went wrong.

0 comments on commit 5bd8706

Please sign in to comment.