Drupal & lt ;? Php $ Id $? ** [Email & #160; protected]? * Administrationpagecallbacksforannotatemodule .? *? **? * Formbuilder. Configureannotations .? * [Email & #160; protected] fo 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' => '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