Rules can react to events occurring on your site, such as a user logging in or a node being submitted, and it can perform customized follow-up actions such as redirecting to a certain page or setting field values. IDBLocaleAwareKeyRange Non-standardĭefines a key range that can be used to retrieve data from a database in a certain range, sorted according to the rules of the locale specified for a certain index (see the options parameter to IDBObjectStore.createIndex().) This interface isn't part of the 2.0 specification. Rules is an engine for automating actions in Drupal. With these two methods, you can create a decoupled site. IDBKeyRangeĭefines a key range that can be used to retrieve data from a database in a certain range. Youll want to add another action to your Rules Link to Set a Data Value inside of the Created Entity (this is a configurable variable created by your Rules. The same rules are respected as if this were a real user logging in to Drupal to update content. Iterates over object stores and indexes and returns the cursor's current value. This is sometimes faster than using IDBObjectStore. Example use cases Build flexible content publishing workflows changes Send customized mails to notify your users about important Create custom redirections, system messages, breadcrumbs. IDBIndexĪlso allows access to a subset of data in an IndexedDB database, but uses an index to retrieve the record(s) rather than the primary key. 206 The Rules module allows site administrators to define conditionally executed actions based on occurring events (known as reactive or ECA rules). Represents an object store that allows access to a set of data in an IndexedDB database, looked up via primary key. Generic interface that handles database requests and provides access to results. You teach your site to perform streamlined and repeatable actions based on what is happening. You create a transaction on a database, specify the scope (such as which object stores you want to access), and determine the kind of access (read only or readwrite) that you want. The Drupal Rules module provides an interface for creating automated workflows on your website.
0 Comments
Leave a Reply. |