You are here

function front_page_get_all in Front Page 8

Same name and namespace in other branches
  1. 6.2 front_page.module \front_page_get_all()
  2. 7.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.

File

./front_page.module, line 89
This module allows the site admin to set advanced front page settings.

Code

function front_page_get_all() {
  $result = Database::getConnection()
    ->select('front_page', 'fp')
    ->fields('fp')
    ->orderBy('weight', 'ASC')
    ->orderBy('rid', 'DESC')
    ->execute()
    ->fetchAllAssoc('rid', PDO::FETCH_ASSOC);
  return $result;
}