You are here

function front_page_get_by_rid in Front Page 7.2

Same name and namespace in other branches
  1. 8 front_page.module \front_page_get_by_rid()
  2. 6.2 front_page.module \front_page_get_by_rid()
  3. 9.1.x front_page.module \front_page_get_by_rid()

Function to return the first role enabled in front page, ordered by weight.

2 calls to front_page_get_by_rid()
front_page_get_by_role in ./front_page.module
Function to return the first role enabled in front page, ordered by weight.
front_page_init in ./front_page.module
Implements hook_init().

File

./front_page.module, line 235

Code

function front_page_get_by_rid($rid) {
  $role = _front_page_get_by_rid_with_default($rid);
  return !empty($role['mode']) ? $role : FALSE;
}