Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7809393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:25:23+00:00 2026-06-02T03:25:23+00:00

Drupal 7.12/organic groups 7.x-1.3 Does anyone know how I can do a quick cURL

  • 0

Drupal 7.12/organic groups 7.x-1.3

Does anyone know how I can do a quick cURL hit against a site with a few POST vars like group ID, group name, etc. when a user creates a group successfully?

I have no idea how the hooks system works in this case.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:25:24+00:00Added an answer on June 2, 2026 at 3:25 am

    An organic group is defined as an Entity in Drupal 7, and as such you can implement hook_entity_insert in a custom module to react to a successful group creation:

    function MYMODULE_entity_insert($entity, $type) {
      if ($type == 'group') {
        $group_id = $entity->gid;
    
        // Install the Devel module and run the following code to get a full
        // breakdown of what's available in the $entity object
        dpm($entity);
    
        // Perform your cURL here
      }
    }
    

    Hope that helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Drupal site that uses Organic Groups to represent companies. I'm looking
Drupal Question: Does anyone have a method of using Views and highlighting a selected/current
My drupal site (internal) will not display the TinyMCE editor when using Google Chrome
drupal version is 6. just want to know where are those $body_classes comes form.
[For Drupal 6] Let's say I've created a content type called my_content_type. I can
A Drupal site a friend has on my server (WHM/CPanel) show his menu navigation
in drupal 6, i've been experimenting with menu_tree('menu-name'); but i can't seem to figure
In drupal, keep getting an upgrade message all over site from htmlpurifier that a
In Drupal, if you want to insert something into the node table, 'nid' can
In Drupal, I can execute a SQL as follows: $query_object = db_query(SELECT * FROM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.