You are here

function _homebox_get_profile_name in Homebox 6

Helper function to return a named profile from an $pid

2 calls to _homebox_get_profile_name()
homebox_configure_form in ./homebox.admin.inc
Forms for administration settings
homebox_layout in ./homebox.admin.inc
Form builder function for module settings.

File

./homebox.module, line 829
Home box main file, takes care of global functions settings constants, etc.

Code

function _homebox_get_profile_name($pid) {
  $page = db_fetch_object(db_query('SELECT * FROM {homebox_pages} WHERE pid = %d', $pid));
  if (is_object($page) && $page->name != '' && $pid == $page->pid) {
    return $page->name;
  }
  return FALSE;
}