You are here

rules_list_conditions.install in Rules List Conditions 7

Install rules list conditions module. Needs to execute after Rules so that the Add Any/All labels come after Rules.

File

rules_list_conditions.install
View source
<?php

/**
 * @file
 * Install rules list conditions module. Needs to execute after Rules so that
 * the Add Any/All labels come after Rules.
 */

/**
 * Implements hook_enable().
 */
function rules_list_conditions_enable() {
  $rules_weight = db_select('system', 's')
    ->fields('s', array(
    'weight',
  ))
    ->condition('name', 'rules', '=')
    ->execute()
    ->fetchField();
  db_update('system')
    ->fields(array(
    'weight' => $rules_weight + 1,
  ))
    ->condition('name', 'rules_list_conditions', '=')
    ->execute();
}

Functions

Namesort descending Description
rules_list_conditions_enable Implements hook_enable().