You are here

function _seochecklist_group_insert in SEO Checklist 6.3

Same name and namespace in other branches
  1. 7.3 seochecklist.admin.inc \_seochecklist_group_insert()
1 call to _seochecklist_group_insert()
_seochecklist_fill in ./seochecklist.admin.inc

File

./seochecklist.admin.inc, line 186
Administrative page callbacks for the seochecklist module.

Code

function _seochecklist_group_insert($name, $description = '') {
  global $seochecklist_groups;
  if (is_array($name)) {
    $t = array_shift($name);
    $name_text = t($t, $name);
  }
  else {
    $name_text = t($name);
  }
  if (is_array($description)) {
    $t = array_shift($description);
    $description_text = t($t, $description);
  }
  else {
    $description_text = t($description);
  }
  $seochecklist_groups[] = (object) array(
    'name' => $name_text,
    'description' => $description_text,
  );
}