function _themekey_load_properties in ThemeKey 6
Function _themekey_load_properties().
1 call to _themekey_load_properties()
- _themekey_properties_form in ./
themekey_admin.inc - Function _themekey_properties_form().
File
- ./
themekey_build.inc, line 313
Code
function _themekey_load_properties($limit = NULL, $order = TRUE) {
$properties = array();
$query = 'SELECT * FROM {themekey_properties}';
$query .= $order ? ' ORDER BY weight' : '';
$result = isset($limit) ? pager_query($query, $limit) : db_query($query);
while ($item = db_fetch_array($result)) {
$item['conditions'] = _themekey_properties_implode_conditions(unserialize($item['conditions']));
$properties[] = $item;
}
return $properties;
}