function blocks_content_register_content_type

4.x blocks.module blocks_content_register_content_type()
5.x blocks.module blocks_content_register_content_type()

Implementatin of content's hook_content_register_content_type

Return value

unknown

File

modules/blocks/blocks.module, line 207

Code

function blocks_content_register_content_type() {
  $arr = array(
    "content_block" => array(
      "title" => t("Content Block"),
      "description" => t("This is a piece of content which can be used as a Block on the Blocks page."),
      "settings" => array(),
    ),
  );


  // In the settings region, I want some extra fields which will be used
  // when we display.
  $arr ["content_block"]["settings"]["mobile_display_mode"] = array(
    "type" => "select",
    "label" => t("Mobile display mode"),
    "options" => array("show" => t("Display"), "hide" => t("Do not show"), "collapse" => t("Collapse into fieldset")),
    "description" => t("When viewing on a mobile device, how should this block display?
                        If you are unsure what to select, leave it set to 'Display'."),
    "no_please_select" => TRUE,
  );

  return $arr;
}