Questions tagged [external-scripts]

Use it for question about calling Drupal functions or methods from an external PHP script.

Filter by
Sorted by
Tagged with
-1
votes
1answer
69 views

Query user_field_data in Drupal

I need to query the user_field_data table to see if a user exists. Through a query string, I pass to a php script that is on the server username and password in clear text. This script connects to the ...
-1
votes
1answer
393 views

How to insert PHP code into the Drupal 7 block with PHPFilter to enable a html form working?

<form action="run_pipeline.php" method="post"> Insert SRA identifier <input type="text" name="email"><br> <input type="submit" value="Run data processing pipeline"> </form&...
-1
votes
2answers
3k views

How do you get DRUPAL_ROOT when using it in a separate php file?

It has been covered many many times on several sites, explaining how to define DRUPAL_ROOT and bootstrap the page (whatever that actually means). However no one has ever said how to use it in a ...
-2
votes
1answer
62 views

Creation of a Content Type to Meet Required Use Case

How do I achieve the following Use Case? Use Case Example Widgets, Inc. offers franchising opportunities. They have 3 different franchising levels (bronze, silver and gold). Widgets, Inc. needs to ...
-2
votes
1answer
159 views

Is this way safe to bootstrap Drupal from an external PHP script? [duplicate]

I want to bootstrap Drupal from an external PHP file located in Drupal's root directory. The following code will do the job. error_reporting(E_ALL); ini_set("display_errors", 1); define('DRUPAL_ROOT',...

1
2