function answers_locking_modules in Answers 7.4
Determine which modules have a stake in locking questions.
3 calls to answers_locking_modules()
- answers_question_locked_p in includes/
answers.lock.inc  - Indicate whether a question is locked or not.
 - answers_question_lock_set in includes/
answers.lock.inc  - Lock a question.
 - answers_question_lock_unset in includes/
answers.lock.inc  - Unlock a question.
 
2 string references to 'answers_locking_modules'
- answers_reset_lock_info in includes/
answers.lock.inc  - Clear locking information cache.
 - _answers_question_installed_fields in ./
answers.install  - Returns a structured array.
 
File
- includes/
answers.lock.inc, line 44  - Question locking functions for the 'Answers' module.
 
Code
function answers_locking_modules() {
  $locks =& drupal_static(__FUNCTION__);
  if (!isset($locks)) {
    // Try to get from cache.
    if ($cache = cache_get('answers_locking_modules')) {
      $locks = $cache->data;
    }
    if (!$locks) {
      $locks = array();
      foreach (module_implements('answers_lock_info') as $module) {
        if (module_invoke($module, 'answers_lock_info')) {
          $locks[$module] = $module;
        }
      }
      cache_set('answers_locking_modules', $locks, 'cache', CACHE_TEMPORARY);
    }
  }
  return $locks;
}