You are here

function resp_img_admin_breakpoints_overview_page in Responsive images and styles 7.2

Admin form overview page.

1 call to resp_img_admin_breakpoints_overview_page()
resp_img_admin_breakpoints in ./resp_img.admin.inc
Admin form

File

./resp_img.admin.inc, line 95
Responsive images and styles - map breakpoints and image styles

Code

function resp_img_admin_breakpoints_overview_page() {
  $links = $output = array();
  $breakpoint_groups = breakpoints_breakpoint_group_load_all();
  if (isset($breakpoint_groups) && !empty($breakpoint_groups)) {
    foreach ($breakpoint_groups as $breakpoint_group) {
      $links[] = l($breakpoint_group->name, 'admin/config/media/resp_img/groups/' . $breakpoint_group->machine_name);
    }
    $output = array(
      '#type' => 'container',
      '#theme' => 'item_list',
      '#items' => $links,
    );
  }
  else {
    $output['info'] = array(
      '#type' => 'markup',
      '#markup' => t("There are no Breakpoint groups. !here to configure Breakpoint groups.", array(
        '!here' => l(t('Click here'), 'admin/config/media/breakpoints/groups/add'),
      )),
    );
  }
  return $output;
}