You are here

function _cache_actions_get_pane_from_key in Cache Actions 7.2

Return the pane pid from a cache key.

Parameters

string $key: The cache key to parse.

Return value

string The pane pid.

1 call to _cache_actions_get_pane_from_key()
cache_actions_update_7201 in ./cache_actions.install
Upgrade all old panels rules to the new format.

File

./cache_actions.install, line 119
Installation tasks for cache actions.

Code

function _cache_actions_get_pane_from_key($key) {
  $info = explode(':', $key);
  if ($info[0] == 'task') {
    return $info[3];
  }
  else {
    return $info[4];
  }
}