Automating Portal Customizations

Not applicable

Hi,

This is probably a very basic question.

We are doing some nominal customizations in drupal portal i.e change header color, add header link, remove some links, publish custom content to terms-use, privacy policy etc.

We are doing it manually now.

Is there an API do perform these functions, so we can put changes in our code repository and be able to do it on any new environment with ease

Thanks,

Jaskaran

0 1 140
1 REPLY 1

@jaskarangump ,

Yes, You can do that using Services module in Drupal which exposes Drupal core functionality as APIs.

  • Header color & other theme customizations are stored in Drupal CMS using variables concept. You should look for exposing variables_set & variables_get functionality using services module. It might be small custom module on top of services module
  • Custom Content in Drupal is called nodes. Services module should support out of the box. See docs here.
  • For menus see the module here that exposes rest API using services module.

It's definitely doable with configurations & little bit of custom code for the first item. Hope it helps.