You are here

function backup_migrate_crud_ui_list_all in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 includes/crud.inc \backup_migrate_crud_ui_list_all()
  2. 6.3 includes/crud.inc \backup_migrate_crud_ui_list_all()

Page callback to list all items.

1 string reference to 'backup_migrate_crud_ui_list_all'
backup_migrate_menu in ./backup_migrate.module
Implements hook_menu().

File

includes/crud.inc, line 170
CRUD functions for backup and migrate types (schedules, profiles etc.).

Code

function backup_migrate_crud_ui_list_all() {
  $out = array();
  foreach (backup_migrate_crud_types() as $type => $info) {
    $type = backup_migrate_crud_type_load($type);
    $out[] = theme('backup_migrate_group', array(
      'title' => t($type->title_plural),
      'body' => $type
        ->get_list(),
    ));
  }
  return implode('', $out);
}