I need to customise my forms in drupal so that each field has a value placed in it using a php script.
I have a php script which takes a url and gets a page title and meta description. It’s easy enough to pass these values into a form by placing the required php in the input value. I can do this on a static ‘test’ form.
However, I’m not sure how to do this with a node form as I don’t directly have access to the input value.
Any ideas or solutions would be greatly appreciated.
Use
hook_form_alter()in order to alter some existing form entity. A basic knowledge about Form API and module development is sufficient.