Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encourage GEOS PHP extension use #521

Merged
merged 3 commits into from
Apr 7, 2022
Merged

Encourage GEOS PHP extension use #521

merged 3 commits into from
Apr 7, 2022

Conversation

mstenta
Copy link
Member

@mstenta mstenta commented Apr 7, 2022

Add hook_requirements() to check if the GEOS PHP extension is installed. This is copied/modified from https://git.drupalcode.org/project/geophp/-/blob/8.x-1.x/geophp.module#L79

Here is the message displayed in /admin/reports/status when GEOS is present:

Screenshot from 2022-04-07 14-11-50

And when it is not present:

Screenshot from 2022-04-07 14-09-02

Also changed the wording of the server requirements to strongly encourage GEOS.

mstenta added a commit to mstenta/farmOS that referenced this pull request Apr 7, 2022
@mstenta mstenta marked this pull request as ready for review April 7, 2022 18:17
@mstenta
Copy link
Member Author

mstenta commented Apr 7, 2022

Oops forgot to run code sniffer before pushing. :-)

Let's see how this one goes...

@mstenta mstenta merged commit 3ecd8b3 into farmOS:2.x Apr 7, 2022
@mstenta mstenta deleted the 2.x-geos branch April 7, 2022 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants