/[drupal]/contributions/modules/rules/rules/rules.export.inc
ViewVC logotype

Diff of /contributions/modules/rules/rules/rules.export.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.5, Tue Aug 25 16:05:03 2009 UTC revision 1.1.2.6, Fri Aug 28 22:05:43 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: rules.export.inc,v 1.1.2.4 2009/08/25 14:52:52 fago Exp $  // $Id: rules.export.inc,v 1.1.2.5 2009/08/25 16:05:03 fago Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 314  function rules_features_providing_module Line 314  function rules_features_providing_module
314    if (!isset($map[$hook])) {    if (!isset($map[$hook])) {
315      $map[$hook] = array();      $map[$hook] = array();
316      foreach (module_implements('rules_'. $hook ) as $module) {      foreach (module_implements('rules_'. $hook ) as $module) {
317        $module_info = array_keys(module_invoke($module, 'rules_'. $hook));        if ($info = module_invoke($module, 'rules_'. $hook)) {
318        $map[$hook] += array_combine($module_info, array_fill(0, count($module_info), $module));          $map[$hook] += array_combine(array_keys($info), array_fill(0, count($info), $module));
319          }
320      }      }
321    }    }
322    return isset($map[$hook][$name]) ? $map[$hook][$name] : FALSE;    return isset($map[$hook][$name]) ? $map[$hook][$name] : FALSE;

Legend:
Removed from v.1.1.2.5  
changed lines
  Added in v.1.1.2.6

  ViewVC Help
Powered by ViewVC 1.1.2