How to alter drupal system configuration by custom module ?

  • Open
  • himanshub
    Participant
    August 9, 2019 at 4:16 am #2526

    By default, we have some common fields in system site settings. Here, we need to add a new field i.e. API Key which admin user will add.

    When any REST API of drupal site will call, Firstly we need to verify that Key.

  1. shahnawazmalik
    Keymaster
    Posts: 25
    November 26, 2019 at 7:49 am #4273

    Hi ,

    Use hook_form_alter in your .module file. Then
    (1)Add new field “Site API Key ” in Site Settings.
    (2)Create new Rest API and verify that site Key in request.