Revision 76bdcd04
Added by Assos Assos almost 6 years ago
drupal7/sites/all/modules/webform/webform.install | ||
---|---|---|
828 | 828 |
file_unmanaged_delete_recursive($filepath); |
829 | 829 |
|
830 | 830 |
// Delete the content type "webform" if: |
831 |
// a) there are no existing nodes of type webform and
|
|
832 |
// b) no additional fields have been defined for node type webform, beyond
|
|
833 |
// the default body field.
|
|
831 |
// 1. there are no existing nodes of type webform and
|
|
832 |
// 2. no additional fields have been defined for node type webform, beyond the
|
|
833 |
// default body field. |
|
834 | 834 |
$query = new EntityFieldQuery(); |
835 | 835 |
$results = $query->entityCondition('entity_type', 'node') |
836 | 836 |
->entityCondition('bundle', 'webform') |
... | ... | |
861 | 861 |
$dependencies['webform'][7320] = array( |
862 | 862 |
'system' => 7059, |
863 | 863 |
); |
864 |
// Ensure rules tables and fields exist before trying to use it. |
|
865 |
$dependencies['webform'][7420] = array( |
|
866 |
'rules' => 7213, |
|
867 |
); |
|
864 |
if (module_exists('rules')) { |
|
865 |
// Ensure rules tables and fields exist before trying to use it. |
|
866 |
$dependencies['webform'][7420] = array( |
|
867 |
'rules' => 7213, |
|
868 |
); |
|
869 |
} |
|
868 | 870 |
return $dependencies; |
869 | 871 |
} |
870 | 872 |
|
Also available in: Unified diff
Weekly update of contrib modules