With the help of this module we can add below field to generate country, state and city drop-down in our content type.
This module have latest data like ... We have 247 country, 4,851 States/Regions and 1,15,547 city.
BENEFITS
--------
This module add 3 below field type :
1) country state city type
When user added this field type in any content type then while adding or
editing choose the country, the state field is showed, than, when user
select the state, the city field is showed.
2) country state type
When user added this field type in any content type then while adding or
editing choose the country, the state field is showed.
3) country only
User can add this filed if they want only country drop-down.
Project page
https://www.drupal.org/project/country_state_city
Git instructions
git clone --branch 8.x-1.x https://git.drupalcode.org/project/country_state_city.git
PAReview checklist
https://pareview.sh/pareview/http-git.drupal.org-project-country_state_city
Comments
Comment #2
avpadernoThank you for applying! Remember to change status, when the project is ready for review, as in this queue Active means Don't review yet the project I am using for this application.
Comment #3
arunkumarkit commentedHi @kiamlaluno
Thanks for your reply.
Now I have change the status, Please check and let me know if have any concern.
Comment #4
klausiOtherwise looks good to me.
Thanks for your contribution, Arun!
I updated your account so you can opt into security advisory coverage now.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #5
avpadernoGiven that this application has never been set to Needs work and that given access to a user who would not have it is a serious issue, the OP is required to make the changes reported in the previous comment, since that is a misuse of Drupal API.
Comment #6
klausiAn application does not have to be set to "needs work" if there is nothing blocking approval :-)
Using the global user is bad, but I do not see a security issue in this case because it cannot be exploited.
Anyway, @arunkumarkit please fix the mentioned issues and then we can approve this for real.
Comment #7
avpadernoThe issue is that what
checkAccess()implemented from an access control handler gets as argument is not necessarily the user object for the currently logged-in user. If the code assumes that, and uses the value returned from\Drupal::currentUser()instead of the argument it gets, it will check the access for the wrong user object. This is as wrong as checking for the wrong user permission.Comment #8
arunkumarkit commentedHi @kiamlaluno
I have done changes as suggested... Could you please check and confirm.
Thanks
Comment #9
avpadernoThe change is fine, for me. See comment #4 for the other suggestions, which (by themselves) aren't reasons to keep the status on Needs work.
Comment #10
avpaderno