function delta_get_stored_override in Delta 6
Same name and namespace in other branches
- 7 delta.module \delta_get_stored_override()
2 calls to delta_get_stored_override()
- delta_manage_override_form in ./
delta.module - delta_override_delete in ./
delta.module - Function to provide confirmation before deleting an override
File
- ./
delta.module, line 831 - The Delta Theme API is an advanced manipulation of the Theme Settings API to allow for customization/configuration of theme settings based on node types, context, or groups of paths.
Code
function delta_get_stored_override($oid) {
$result = db_query("\n SELECT \n did, tid, theme, system_name, name, weight, value \n FROM {delta_theme_overrides} \n WHERE did = %d\n ORDER BY weight ASC", $oid);
$delta = db_fetch_object($result);
$conditions = unserialize($delta->value);
$data = array(
'delta_override' => array(
'did' => $delta->did,
'tid' => $delta->tid,
'theme' => $delta->theme,
'name' => $delta->name,
'system_name' => $delta->system_name,
'weight' => $delta->weight,
),
'delta_conditions' => array(
'nodes' => $conditions['node-types'],
'contexts' => $conditions['contexts'],
'paths' => $conditions['paths'],
),
);
return $data;
}