You are here

function legal_get_conditions in Legal 5

Same name and namespace in other branches
  1. 8 legal.module \legal_get_conditions()
  2. 6.8 legal.module \legal_get_conditions()
  3. 6.7 legal.module \legal_get_conditions()
  4. 7.2 legal.module \legal_get_conditions()
  5. 7 legal.module \legal_get_conditions()
  6. 2.0.x legal.module \legal_get_conditions()
5 calls to legal_get_conditions()
legal_administration in ./legal.module
legal_conditions_updated in ./legal.module
legal_login in ./legal.module
legal_page in ./legal.module
legal_user in ./legal.module

File

./legal.module, line 653

Code

function legal_get_conditions() {
  $conditions = db_fetch_array(db_query("SELECT * FROM {legal_conditions} ORDER BY tc_id DESC LIMIT 1"));
  $conditions['extras'] = empty($conditions['extras']) ? array() : unserialize($conditions['extras']);
  return $conditions;
}