function rules_forms_set_cache in Rules Forms Support 7.2
Caches data.
Parameters
string $cid: The cache ID.
mixed $data: The data to be cached.
2 calls to rules_forms_set_cache()
- rules_forms_get_element_info in ./
rules_forms.module  - Returns element info defined in hook_rules_forms_element_info().
 - rules_forms_get_form_info in ./
rules_forms.module  - Returns an array of information about active forms.
 
File
- ./
rules_forms.module, line 114  - Rules Forms Support provides events, conditions, and actions for site forms.
 
Code
function rules_forms_set_cache($cid, $data) {
  $cache =& drupal_static('rules_forms_get_cache', array());
  $cache[$cid] = $data;
  cache_set($cid, $cache[$cid]);
}