function patterns_db_get_name_from_id in Patterns 7
Same name and namespace in other branches
- 7.2 includes/db.inc \patterns_db_get_name_from_id()
Looks up a pattern name into the database and returns the numerical id associated with it. Returns false, if no valid pattern name was passed.
Parameters
mixed $id the numerical id to look up:
File
- includes/db.inc, line 426 
- Retrieve, save, and remove patterns from the database.
Code
function patterns_db_get_name_from_id($id) {
  if (empty($id)) {
    return FALSE;
  }
  $p = patterns_get_pattern($id);
  if ($p) {
    $p = $p['name'];
  }
  return $p;
}