diff options
Diffstat (limited to 'modules/kalpesh/members')
30 files changed, 1297 insertions, 0 deletions
diff --git a/modules/kalpesh/members/composer.json b/modules/kalpesh/members/composer.json new file mode 100644 index 0000000..95e4284 --- /dev/null +++ b/modules/kalpesh/members/composer.json @@ -0,0 +1,13 @@ +{ + "name": "members", + "type": "drupal-module", + "description": "This modole store members details", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/members", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/members", + "source": "http://cgit.drupalcode.org/members", + }, +} diff --git a/modules/kalpesh/members/config/install/core.base_field_override.node.members.promote.yml b/modules/kalpesh/members/config/install/core.base_field_override.node.members.promote.yml new file mode 100644 index 0000000..f2a81bb --- /dev/null +++ b/modules/kalpesh/members/config/install/core.base_field_override.node.members.promote.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - node.type.members + enforced: + module: + - members +id: node.members.promote +field_name: promote +entity_type: node +bundle: members +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/members/config/install/core.entity_form_display.node.members.default.yml b/modules/kalpesh/members/config/install/core.entity_form_display.node.members.default.yml new file mode 100644 index 0000000..7dca7b1 --- /dev/null +++ b/modules/kalpesh/members/config/install/core.entity_form_display.node.members.default.yml @@ -0,0 +1,158 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.members.body + - field.field.node.members.field_category + - field.field.node.members.field_designation + - field.field.node.members.field_email_members + - field.field.node.members.field_file_uploads_members + - field.field.node.members.field_full_name_members + - field.field.node.members.field_image_members + - field.field.node.members.field_location_members + - field.field.node.members.field_phone_no_members + - image.style.thumbnail + - node.type.members + module: + - file + - image + - name + - path + - text + enforced: + module: + - members +id: node.members.default +targetEntityType: node +bundle: members +mode: default +content: + body: + type: text_textarea_with_summary + weight: 121 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_category: + weight: 123 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content + field_designation: + weight: 124 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_email_members: + weight: 125 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: email_default + region: content + field_file_uploads_members: + weight: 127 + settings: + progress_indicator: throbber + third_party_settings: { } + type: file_generic + region: content + field_full_name_members: + weight: 122 + settings: { } + third_party_settings: { } + type: name_default + region: content + field_image_members: + weight: 126 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + field_location_members: + weight: 128 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_phone_no_members: + weight: 129 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/members/config/install/core.entity_view_display.node.members.default.yml b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.default.yml new file mode 100644 index 0000000..c8d2d9b --- /dev/null +++ b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.default.yml @@ -0,0 +1,371 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.members.body + - field.field.node.members.field_category + - field.field.node.members.field_designation + - field.field.node.members.field_email_members + - field.field.node.members.field_file_uploads_members + - field.field.node.members.field_full_name_members + - field.field.node.members.field_image_members + - field.field.node.members.field_location_members + - field.field.node.members.field_phone_no_members + - image.style.group_research_area_image + - node.type.members + module: + - ds + - file + - image + - name + - text + - user + enforced: + module: + - members +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - links + - field_image_members + - body + - field_full_name_members + - field_email_members + - field_category + - field_designation + - field_location_members + - field_phone_no_members + - field_file_uploads_members +id: node.members.default +targetEntityType: node +bundle: members +mode: default +content: + body: + label: hidden + type: text_default + weight: 2 + settings: { } + third_party_settings: { } + region: ds_content + field_category: + weight: 5 + label: inline + settings: + link: true + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: entity_reference_label + region: ds_content + field_designation: + weight: 6 + label: inline + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_email_members: + weight: 4 + label: inline + settings: { } + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: basic_string + region: ds_content + field_file_uploads_members: + weight: 9 + label: inline + settings: + use_description_as_link_text: true + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: file_default + region: ds_content + field_full_name_members: + weight: 3 + label: inline + settings: + format: default + output: default + multiple: default + multiple_delimiter: ', ' + multiple_and: text + multiple_delimiter_precedes_last: never + multiple_el_al_min: '3' + multiple_el_al_first: '1' + markup: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis: true + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: name_default + region: ds_content + field_image_members: + weight: 1 + label: hidden + settings: + image_style: group_research_area_image + image_link: '' + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow-el: '' + ow-cl: '' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + type: image + region: ds_content + field_location_members: + weight: 7 + label: inline + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_phone_no_members: + weight: 8 + label: inline + settings: + link_to_entity: false + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + links: + weight: 0 + region: ds_content + settings: { } + third_party_settings: { } +hidden: + langcode: true diff --git a/modules/kalpesh/members/config/install/core.entity_view_display.node.members.teaser.yml b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.teaser.yml new file mode 100644 index 0000000..ccdd331 --- /dev/null +++ b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.teaser.yml @@ -0,0 +1,33 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.members.body + - node.type.members + module: + - text + - user + enforced: + module: + - members +id: node.members.teaser +targetEntityType: node +bundle: members +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/members/config/install/field.field.node.members.body.yml b/modules/kalpesh/members/config/install/field.field.node.members.body.yml new file mode 100644 index 0000000..4ae414b --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.body.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.members + module: + - text + enforced: + module: + - members +id: node.members.body +field_name: body +entity_type: node +bundle: members +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_category.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_category.yml new file mode 100644 index 0000000..66f5930 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_category.yml @@ -0,0 +1,31 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_category + - node.type.members + - taxonomy.vocabulary.category + enforced: + module: + - members +id: node.members.field_category +field_name: field_category +entity_type: node +bundle: members +label: Category +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + category: category + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_designation.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_designation.yml new file mode 100644 index 0000000..3ac8820 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_designation.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_designation + - node.type.members + enforced: + module: + - members +id: node.members.field_designation +field_name: field_designation +entity_type: node +bundle: members +label: Designation +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_email_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_email_members.yml new file mode 100644 index 0000000..43dd139 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_email_members.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_email_members + - node.type.members + enforced: + module: + - members +id: node.members.field_email_members +field_name: field_email_members +entity_type: node +bundle: members +label: Email +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: email diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_file_uploads_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_file_uploads_members.yml new file mode 100644 index 0000000..e2c81e4 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_file_uploads_members.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_file_uploads_members + - node.type.members + enforced: + module: + - members + module: + - file +id: node.members.field_file_uploads_members +field_name: field_file_uploads_members +entity_type: node +bundle: members +label: 'File uploads' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: members + file_extensions: 'txt pdf' + max_filesize: '' + description_field: false + handler: 'default:file' + handler_settings: { } +field_type: file diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_full_name_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_full_name_members.yml new file mode 100644 index 0000000..7310e10 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_full_name_members.yml @@ -0,0 +1,56 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_full_name_members + - node.type.members + enforced: + module: + - members + module: + - name +id: node.members.field_full_name_members +field_name: field_full_name_members +entity_type: node +bundle: members +label: 'Full Name' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + size: + title: 6 + given: 20 + middle: 20 + family: 20 + generational: 5 + credentials: 35 + title_display: + title: description + given: description + middle: description + family: description + generational: description + credentials: description + field_type: + title: select + given: text + middle: text + family: text + generational: select + credentials: text + inline_css: + title: '' + given: '' + middle: '' + family: '' + generational: '' + credentials: '' + component_css: '' + component_layout: default + show_component_required_marker: false + credentials_inline: false + override_format: default +field_type: name diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_image_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_image_members.yml new file mode 100644 index 0000000..e45b868 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_image_members.yml @@ -0,0 +1,40 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_image_members + - node.type.members + module: + - image + enforced: + module: + - members +id: node.members.field_image_members +field_name: field_image_members +entity_type: node +bundle: members +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: members + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_location_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_location_members.yml new file mode 100644 index 0000000..7b59f13 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_location_members.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_location_members + - node.type.members + enforced: + module: + - members +id: node.members.field_location_members +field_name: field_location_members +entity_type: node +bundle: members +label: Location +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_phone_no_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_phone_no_members.yml new file mode 100644 index 0000000..60c6269 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_phone_no_members.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_phone_no_members + - node.type.members + enforced: + module: + - members +id: node.members.field_phone_no_members +field_name: field_phone_no_members +entity_type: node +bundle: members +label: 'Phone No ' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_category.yml b/modules/kalpesh/members/config/install/field.storage.node.field_category.yml new file mode 100644 index 0000000..325c8d3 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_category.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + module: + - node + - taxonomy + enforced: + module: + - members +id: node.field_category +field_name: field_category +entity_type: node +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_designation.yml b/modules/kalpesh/members/config/install/field.storage.node.field_designation.yml new file mode 100644 index 0000000..5bb724b --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_designation.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - members +id: node.field_designation +field_name: field_designation +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_email_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_email_members.yml new file mode 100644 index 0000000..99c1f69 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_email_members.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - members +id: node.field_email_members +field_name: field_email_members +entity_type: node +type: email +settings: { } +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_file_uploads_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_file_uploads_members.yml new file mode 100644 index 0000000..bdc9bc0 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_file_uploads_members.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + module: + - file + - node + enforced: + module: + - members +id: node.field_file_uploads_members +field_name: field_file_uploads_members +entity_type: node +type: file +settings: + display_field: false + display_default: false + uri_scheme: public + target_type: file +module: file +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_full_name_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_full_name_members.yml new file mode 100644 index 0000000..2334559 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_full_name_members.yml @@ -0,0 +1,91 @@ +langcode: en +status: true +dependencies: + module: + - name + - node + enforced: + module: + - members +id: node.field_full_name_members +field_name: field_full_name_members +entity_type: node +type: name +settings: + components: + title: true + given: true + middle: true + family: true + generational: true + credentials: true + minimum_components: + given: true + family: true + title: false + middle: false + generational: false + credentials: false + labels: + title: Title + given: Given + middle: 'Middle name(s)' + family: Family + generational: Generational + credentials: Credentials + max_length: + title: 31 + given: 63 + middle: 127 + family: 63 + generational: 15 + credentials: 255 + autocomplete_source: + title: + title: title + given: { } + middle: { } + family: { } + generational: + generational: '0' + credentials: { } + autocomplete_separator: + title: ' ' + given: ' -' + middle: ' -' + family: ' -' + generational: ' ' + credentials: ', ' + allow_family_or_given: false + title_options: + - '-- --' + - Mr. + - Mrs. + - Miss + - Ms. + - Dr. + - Prof. + generational_options: + - '-- --' + - Jr. + - Sr. + - I + - II + - III + - IV + - V + - VI + - VII + - VIII + - IX + - X + sort_options: + title: false + generational: false +module: name +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_image_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_image_members.yml new file mode 100644 index 0000000..84c6baa --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_image_members.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node + enforced: + module: + - members +id: node.field_image_members +field_name: field_image_members +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_location_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_location_members.yml new file mode 100644 index 0000000..1567014 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_location_members.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - members +id: node.field_location_members +field_name: field_location_members +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_phone_no_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_phone_no_members.yml new file mode 100644 index 0000000..e25b71c --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_phone_no_members.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + module: + - node + enforced: + module: + - members +id: node.field_phone_no_members +field_name: field_phone_no_members +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/image.style.group_research_area_image.yml b/modules/kalpesh/members/config/install/image.style.group_research_area_image.yml new file mode 100644 index 0000000..09b645b --- /dev/null +++ b/modules/kalpesh/members/config/install/image.style.group_research_area_image.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - members +name: group_research_area_image +label: 'Group Research area image' +effects: + 366cac20-7b38-410e-b508-129e23608539: + uuid: 366cac20-7b38-410e-b508-129e23608539 + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/members/config/install/node.type.members.yml b/modules/kalpesh/members/config/install/node.type.members.yml new file mode 100644 index 0000000..acefdd0 --- /dev/null +++ b/modules/kalpesh/members/config/install/node.type.members.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui + enforced: + module: + - members +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Members +type: members +description: '' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/members/config/install/taxonomy.vocabulary.category.yml b/modules/kalpesh/members/config/install/taxonomy.vocabulary.category.yml new file mode 100644 index 0000000..d3d6ad7 --- /dev/null +++ b/modules/kalpesh/members/config/install/taxonomy.vocabulary.category.yml @@ -0,0 +1,11 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - members +name: Category +vid: category +description: '' +hierarchy: 0 +weight: 0 diff --git a/modules/kalpesh/members/members.info.yml b/modules/kalpesh/members/members.info.yml new file mode 100644 index 0000000..a66ee20 --- /dev/null +++ b/modules/kalpesh/members/members.info.yml @@ -0,0 +1,19 @@ +name: Members +type: module +description: 'This modole store members details' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:file + - drupal:image + - drupal:name + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + - drupal:taxonomy + + + diff --git a/modules/kalpesh/members/members.install b/modules/kalpesh/members/members.install new file mode 100644 index 0000000..bb3a6cf --- /dev/null +++ b/modules/kalpesh/members/members.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function members_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'members'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/members/members.module b/modules/kalpesh/members/members.module new file mode 100644 index 0000000..035d5c0 --- /dev/null +++ b/modules/kalpesh/members/members.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains members.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function members_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the members module. + case 'help.page.members': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This modole store members details') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function members_theme() { + return [ + 'members' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/members/templates/members.html.twig b/modules/kalpesh/members/templates/members.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/members/templates/members.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/kalpesh/members/tests/src/Functional/LoadTest.php b/modules/kalpesh/members/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..4a4ce20 --- /dev/null +++ b/modules/kalpesh/members/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +<?php + +namespace Drupal\Tests\members\Functional; + +use Drupal\Core\Url; +use Drupal\Tests\BrowserTestBase; + +/** + * Simple test to ensure that main page loads with module enabled. + * + * @group members + */ +class LoadTest extends BrowserTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['members']; + + /** + * A user with permission to administer site configuration. + * + * @var \Drupal\user\UserInterface + */ + protected $user; + + /** + * {@inheritdoc} + */ + protected function setUp() { + parent::setUp(); + $this->user = $this->drupalCreateUser(['administer site configuration']); + $this->drupalLogin($this->user); + } + + /** + * Tests that the home page loads with a 200 response. + */ + public function testLoad() { + $this->drupalGet(Url::fromRoute('<front>')); + $this->assertSession()->statusCodeEquals(200); + } + +} |