function _radioactivity_upgrade_view_get_legacy_dpid_from_field in Radioactivity 5
1 call to _radioactivity_upgrade_view_get_legacy_dpid_from_field()
File
- ./
radioactivity.install, line 109
Code
function _radioactivity_upgrade_view_get_legacy_dpid_from_field($field) {
$matches = array();
if (preg_match('@^radioactivity_(\\d+)\\.energy$@', $field, $matches)) {
return $matches[1];
}
else {
return FALSE;
}
}