X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fctools%2Fmodules%2Fctools_views%2Fctools_views.module;fp=web%2Fmodules%2Fcontrib%2Fctools%2Fmodules%2Fctools_views%2Fctools_views.module;h=845feb6a06a6b526725c77fd8358c82ce5d34767;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/ctools/modules/ctools_views/ctools_views.module b/web/modules/contrib/ctools/modules/ctools_views/ctools_views.module new file mode 100644 index 000000000..845feb6a0 --- /dev/null +++ b/web/modules/contrib/ctools/modules/ctools_views/ctools_views.module @@ -0,0 +1,104 @@ + 'string', + 'label' => 'Pager type' + ]; + $definitions['views_block']['mapping']['fields'] = [ + 'type' => 'sequence', + 'label' => 'Fields settings', + 'sequence' => [ + [ + 'type' => 'mapping', + 'label' => 'Field settings', + 'mapping' => [ + 'hide' => [ + 'type' => 'boolean', + 'label' => 'Hide field', + ], + 'weight' => [ + 'type' => 'integer', + 'label' => 'Field weight', + ], + ], + ], + ], + ]; + $definitions['views_block']['mapping']['filter'] = [ + 'type' => 'sequence', + 'label' => 'Filters settings', + 'sequence' => [ + [ + 'type' => 'mapping', + 'label' => 'Filter settings', + 'mapping' => [ + 'type' => [ + 'type' => 'string', + 'label' => 'Plugin id', + ], + 'disable' => [ + 'type' => 'boolean', + 'label' => 'Disable filter', + ], + ], + ], + ], + ]; + $definitions['views_block']['mapping']['sort'] = [ + 'type' => 'sequence', + 'label' => 'Sort settings', + 'sequence' => [ + [ + 'type' => 'string', + 'label' => 'Sort order value', + ], + ], + ]; + $definitions['views_block']['mapping']['pager_offset'] = [ + 'type' => 'integer', + 'label' => 'Pager offset' + ]; + + // Add to the views block display plugin schema. + $definitions['views.display.block']['mapping']['allow']['mapping']['offset'] = [ + 'type' => 'string', + 'label' => 'Pager offset', + ]; + $definitions['views.display.block']['mapping']['allow']['mapping']['pager'] = [ + 'type' => 'string', + 'label' => 'Pager type', + ]; + $definitions['views.display.block']['mapping']['allow']['mapping']['hide_fields'] = [ + 'type' => 'string', + 'label' => 'Hide fields', + ]; + $definitions['views.display.block']['mapping']['allow']['mapping']['sort_fields'] = [ + 'type' => 'string', + 'label' => 'Sort fields', + ]; + $definitions['views.display.block']['mapping']['allow']['mapping']['disable_filters'] = [ + 'type' => 'string', + 'label' => 'Disable filters', + ]; + $definitions['views.display.block']['mapping']['allow']['mapping']['configure_sorts'] = [ + 'type' => 'string', + 'label' => 'Configure sorts', + ]; +}