You are here

function radioactivity_admin_profile_list in Radioactivity 5

Same name and namespace in other branches
  1. 6 radioactivity-admin-ui.inc \radioactivity_admin_profile_list()
1 string reference to 'radioactivity_admin_profile_list'
radioactivity_menu in ./radioactivity.module

File

./radioactivity.module, line 171

Code

function radioactivity_admin_profile_list() {
  $form = array();
  $decay_profiles = _radioactivity_get_decay_profiles();
  $profile_rows = array();
  foreach ($decay_profiles as $dpid => $decay_profile) {
    $profile_rows[] = array(
      'data' => array(
        $dpid,
        check_plain($decay_profile["label"]),
        '<a href="' . url('admin/settings/radioactivity/profile_' . $dpid) . '">' . t("Edit") . '</a>',
      ),
    );
  }
  $profiles_table = theme('table', array(
    t('Id'),
    t('Label'),
    t('Actions'),
  ), $profile_rows);
  $form['profiles_table'] = array(
    '#value' => $profiles_table,
  );
  return $form;
}