You are here

function front_page_get_all in Front Page 7.2

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

Function to return all the roles in front page, ordered by weight.

3 calls to front_page_get_all()
front_page_admin in ./front_page.admin.inc
Form for configuring front page settings.
front_page_admin_arrange_form in ./front_page.admin.inc
Form for arranging the roles according to what order the roles should be processed.
front_page_admin_arrange_form_submit in ./front_page.admin.inc
Submit hook for front_page_admin_arrange_form.

File

./front_page.module, line 244

Code

function front_page_get_all() {
  $roles = array();
  foreach (user_roles() as $rid => $role) {
    $roles[$rid] = _front_page_get_by_rid_with_default($rid);
  }
  uasort($roles, '_front_page_sort');
  return $roles;
}