How to deal with drupal?

Source: Internet
Author: User
Tags drupal
Drupal & lt ;? Php $ Id $? **? * @ File? * Administrationpagecallbacksforannotatemodule .? *? **? * Formbuilder. Configureannotations .? *? * @ Ingroupforms? * @ Seesystem_settings _ drupal
// $ Id $
?
/**
? * @ File
? * Administration page callbacks for annotate module.
? */
?
/**
? * Form builder. Configure annotations.
? *
? * @ Ingroup forms
? * @ See 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' => 'stamp ')
? $ Options = node_get_types ('names ');
?
? $ Form ['annotate _ node_types '] = array (
'# Type' => 'checkboxes ',
'# Title' => t ('users may annotate these content types '),
'# Options' => $ options ,?
'# Default_value' => variable_get ('annotate _ node_types ', array ('page ')),?
'# Description' => t ('A text field will be 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 to replace

------ Solution --------------------
If you check a content type. Node_get_types ('name', 'keyname ');?
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.