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

  • Home
  • SEARCH
  • 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 8790237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:35:56+00:00 2026-06-13T22:35:56+00:00

I am importing/updating nodes from a web service using node_save. One feature that I

  • 0

I am importing/updating nodes from a web service using node_save. One feature that I want to achieve is when the imported node is changed locally, it should not receive any further updates from the web service.

So, what I want to achieve is:

  • Detect when a node has been updated
  • If the update was carried out by a user submitting a form (as oppose to programmatically)
  • Then flag that this node should receive no further updates form the web service (I don’t need any assistance with this part)

I wanted to use hook_node_update but I’m not sure how to tell whether the update was carried out by a user submitting a form.

Any suggestions?

  • 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-13T22:35:57+00:00Added an answer on June 13, 2026 at 10:35 pm

    During CREATION of node by user (initial setup):
    Create a hidden field for nodes with default value to be set to “submitted by user“. As its a hidden field it wont be available in the node edit form, but still it will carry the default value with it.

    UPDATING of node by user:
    Use hook_form_alter to set the value of our hidden input to “submitted by user“.

    During CREATE/UPDATE of a node using webservice:
    When creating a node programmatically update the hidden field value with “submitted by webservice“.

    Now in hook_node_update you can check for this hidden field value and take decisions accordingly.

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

Sidebar

Related Questions

After importing content from a legacy website using the Feeds module, I'm left with
When importing or exporting Databases using Taps in heroku , is it necessary that
I'm using a Alarm Manager through with Service for updating widget instance. While doing
I'm currently using Mongomapper within a Padrino project where I'm importing data from an
I'm designing a tool using Java 6, that will read data from Medical Devices.
I am importing data from one database to another. The hierarchyid column must also
While importing website through content porter, I am getting an error that names and
I'm importing a function from an unmanaged DLL into C#. The C++ function signature
I am importing data from MySQL to PowerPivot. I have all of the relevant
I am having trouble importing python packages only when running python from cmdline/console. However,

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.