D7 Limit each user to only 1 node of Content Type

We need to limit each users to add only one page (node) of a specific Content Type.

We checked but could not find a solution.

Drupal 7.

Any suggestions??

Thanks

Webform issue after upgrading from PHP7.0 to PHP7.3

I just experienced a very obscure error related to Webforms and upgrading to PHP7.3. I'm sharing here to save others the frustration on the off chance they experience the same issue.

After upgrading to PHP7.3, we experienced "Cannot use string offset as an array" fatal errors in the webform component render functions. 

Controlling subscription notification mail format

I'm running D7 in a multisite configuration. Subscription notification mail messages for identical pages on different sites are formatted differently.

Site 1:

*I'm bold.*

/I'm italic./

I'm underlined.

Site 2:

<p><strong>I'm bold.</strong></p>
<p><em>I'm italic.</em></p>
<p><u>I'm underlined.</u></p>

Using composer to install Drupal 7

In the documentation for installing Drupal 7 - https://www.drupal.org/docs/7/install/step-1-download-and-extract-drupal - there is a bullet point: "using composer".

Clicking on that link takes one to this page: https://www.drupal.org/node/2718229. It tells you to use this command:

composer create-project drupal/recommended-project my_site_name_dir

Display link to parent term on child term page.

I have a vocabulary with all the states and the counties for each state as children. When I'm viewing a child term page I want to display the parent of that child (as a link) - similar to how breadcrumbs would display. I would like to get this to work using Views. The project/path_breadcrums is not a option.

Vocabulary setup:

Vocab: States
Parent: Ohio
Child: Greene county

Pathauto config:

[term:vocabulary]/[term:parent]/[term:name]

Sample URL:

Because of forUpdate facing issue with query on slave

 protected function buildQuery($ids, $conditions = array(), $revision_id = FALSE) {

    $query = parent::buildQuery($ids, $conditions, $revision_id);

    if ($this->pessimisticLocking && isset($this->entityInfo['locking mode']) && $this->entityInfo['locking mode'] == 'pessimistic') {

      // In pessimistic locking mode, we issue the load query with a FOR UPDATE

      // clause. This will block all other load queries to the loaded objects

      // but requires us to start a transaction.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x