Drupal 7 API: Include Files

Drupal 7 API: Include Files - Term Definition What are...

Info icon This preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Term: What are Drupal 7 include files and why are they kept in a separate directory from Drupal 7 modules? Definition: Drupal 7 include files are common resources for all Drupal modules. A good example are the database connection includes, which gives all modules access to the database. Term: What is actions.inc for? Definition: This is the actions engine for executing stored actions. Term: What is ajax.inc for? Definition: Functions for use with Drupal's Ajax framework. Term: What is archiver.inc for? Definition: Shared classes and interfaces for the archiver system.
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Term: What is authorize.inc for? Definition: Helper functions and form handlers used for the authorize.php script. Term: What is batch.inc for? What operations usually invoke batches? Definition: Batch processing API for processes to run in multiple HTTP requests. Note that batches are usually invoked by form submissions, which is why the core interaction functions of the batch processing API live in form.inc. Term: What is batch.queue.inc for? Definition: Queue handlers used by the Batch API. These implementations: - Ensure FIFO ordering. - Allow an item to be repeatedly claimed until it is actually deleted (no notion of lease time or 'expire' date), to allow multi-pass operations. Term: What is bootstrap.inc for? Definition: Functions that need to be loaded on every Drupal request.
Image of page 2
Term: What is cache-install.inc for? Definition: Provides a stub cache implementation to be used during installation. Term: What is cache.inc for? Definition: Functions and interfaces for cache handling. Term: What is common.inc for? Definition: Common functions that many Drupal modules will need to reference. Term: What are these database include files for? Definition: database.inc -Core systems for the database layer. Classes required for basic functioning of the database system should be placed in this file. All utility functions should also be placed in this file only, as they cannot auto-load the way classes can. prefetch.inc - Database interface code for engines that need complete control over their result sets. For example, SQLite will prefix some column names by the name of the table. We post-process the
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
data, by renaming the column names using the same convention as MySQL and PostgreSQL. schema.inc - Generic Database schema code. mysql - mysql/database.inc => DB interface code for MySQL db servers. - mysql/install.inc => Install code for MySQL embedded db engine. - mysql/query.inc => Query code for MySQL embedded db engine. - mysql/schema.inc => DB schema code for MySQL db servers. pgsql ... etc sqlsrv ... etc sqlite ... etc log.inc - Database query logger.
Image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern