Révision 6ff32cea
Ajouté par Florent Torregrosa il y a environ 9 ans
drupal7/modules/node/node.module | ||
---|---|---|
506 | 506 |
* - custom: TRUE or FALSE indicating whether this type is defined by a module |
507 | 507 |
* (FALSE) or by a user (TRUE) via Add Content Type. |
508 | 508 |
* - modified: TRUE or FALSE indicating whether this type has been modified by |
509 |
* an administrator. Currently not used in any way. |
|
509 |
* an administrator. When modifying an existing node type, set to TRUE, or |
|
510 |
* the change will be ignored on node_types_rebuild(). |
|
510 | 511 |
* - locked: TRUE or FALSE indicating whether the administrator can change the |
511 | 512 |
* machine name of this type. |
512 | 513 |
* - disabled: TRUE or FALSE indicating whether this type has been disabled. |
... | ... | |
739 | 740 |
$type_db = $type_object->type; |
740 | 741 |
// Original disabled value. |
741 | 742 |
$disabled = $type_object->disabled; |
742 |
// Check for node types from disabled modules and mark their types for removal. |
|
743 |
// Types defined by the node module in the database (rather than by a separate |
|
744 |
// module using hook_node_info) have a base value of 'node_content'. The isset() |
|
745 |
// check prevents errors on old (pre-Drupal 7) databases. |
|
746 |
if (isset($type_object->base) && $type_object->base != 'node_content' && empty($_node_types->types[$type_db])) { |
|
743 |
// Check for node types either from disabled modules or otherwise not defined |
|
744 |
// and mark as disabled. |
|
745 |
if (empty($type_object->custom) && empty($_node_types->types[$type_db])) { |
|
747 | 746 |
$type_object->disabled = TRUE; |
748 | 747 |
} |
749 | 748 |
if (isset($_node_types->types[$type_db])) { |
... | ... | |
1580 | 1579 |
), |
1581 | 1580 |
'access content overview' => array( |
1582 | 1581 |
'title' => t('Access the content overview page'), |
1583 |
'description' => user_access('access content overview') |
|
1584 |
? t('Get an overview of <a href="@url">all content</a>.', array('@url' => url('admin/content'))) |
|
1585 |
: t('Get an overview of all content.'), |
|
1582 |
'description' => t('Get an overview of <a href="@url">all content</a>.', array('@url' => url('admin/content'))), |
|
1586 | 1583 |
), |
1587 | 1584 |
'access content' => array( |
1588 | 1585 |
'title' => t('View published content'), |
... | ... | |
1610 | 1607 |
} |
1611 | 1608 |
|
1612 | 1609 |
/** |
1613 |
* Gathers the rankings from the the hook_ranking() implementations.
|
|
1610 |
* Gathers the rankings from the hook_ranking() implementations. |
|
1614 | 1611 |
* |
1615 | 1612 |
* @param $query |
1616 | 1613 |
* A query object that has been extended with the Search DB Extender. |
Formats disponibles : Unified diff
Update core to 7.36