Drupal, what's the deal?

Source: Internet
Author: User
Tags drupal
Drupal
$Id $
?
/**
[Email protected]
? *administration page callbacks for annotate module.
?*/
?
/**
? *form Builder. Configure annotations.
?*
[Email protected] Forms
[Email protected] system_settings_form ().
?*/
function Annotate_admin_settings () {
?//get an array of node types with internal names as keys and
?//"friendly names" as values.
?//e.g.,array (' Page ' = ' page ', ' story ' = ' story ')
? $options = node_get_types (' names ');
?
? $form [' annotate_node_types '] = Array (
' #type ' = ' checkboxes ',
' #title ' and t (' Users may annotate these content types '),
' #options ' and $options,?
' #default_value ' = Variable_get (' annotate_node_types ', Array (' page ')),?
' #description ' and t (' A text field ' is available on these content types to make user-specific notes. '),
);
?
Return System_settings_form ($form);
}

$options = node_get_types (' names '); What is the name of names here, is it just a parameter? What are you replacing?

------Solution--------------------
If a content type is checked. Node_get_types (' name ', ' Key Name ');?
Reference: HTTP://API.DRUPAL.ORG/API/DRUPAL/MODULES!NODE!NODE.MODULE/FUNCTION/NODE_GET_TYPES/6
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.