function announcements_content_register_content_type
Search API
6.x announcements.module | announcements_content_register_content_type() |
4.x announcements.module | announcements_content_register_content_type() |
5.x announcements.module | announcements_content_register_content_type() |
Implementatin of content's hook_content_register_content_type
Return value
unknown
File
- modules/
announcements/ announcements.module, line 16
Code
function announcements_content_register_content_type() {
$arr = array(
"announcement" => array(
"title" => t("Announcement"),
"description" => t("This is a short announcement to the user, meant to be displayed like news items in a block."),
"settings" => array(),
),
);
// In the settings region, I want some extra fields which will be used
// when we display.
$arr ["announcement"]["settings"]["visibility"] = array(
"type" => "radios",
"label" => t("Visibility:"),
"options" => array("public" => t("Public (all users, incl students)"),
"faculty" => t("Only faculty/staff"), "hidden" => t("Hidden")
),
"required" => TRUE,
);
return $arr;
}