Commit 77da7e5e authored by yched's avatar yched

oops - forgot some lines in http://drupal.org/cvs?commit=50268

parent 4c6e35e0
......@@ -936,4 +936,13 @@ function theme_field(&$node, &$field, &$items, $teaser, $page) {
$output .= '</div>';
}
return $output;
}
\ No newline at end of file
}
/**
* Implementation of hook_simpletest().
*/
function content_simpletest() {
$dir = drupal_get_path('module', 'content') .'/tests';
$tests = file_scan_directory($dir, '\.test$');
return array_keys($tests);
}
......@@ -213,6 +213,7 @@ function _content_admin_type_delete_submit($form_id, $form_values) {
$type = content_types($form_values['type_name']);
if ($type && $form_values['confirm']) {
include_once('./'. drupal_get_path('module', 'content') .'/content_crud.inc');
content_type_delete($form_values);
drupal_set_message(t('Deleted content type %type.', array('%type' => theme('placeholder', $type['label']))));
return 'admin/node/types';
......@@ -736,6 +737,7 @@ function _content_admin_field_remove_submit($form_id, $form_values) {
$field = $type['fields'][$form_values['field_name']];
if ($type && $field && $form_values['confirm']) {
include_once('./'. drupal_get_path('module', 'content') .'/content_crud.inc');
content_field_instance_delete($form_values);
drupal_set_message(t('Removed field %field from %type.', array('%field' => theme('placeholder', $field['widget']['label']), '%type' => theme('placeholder', $type['label']))));
......
......@@ -234,12 +234,3 @@ function content_field_instance_delete($properties) {
return $number_deleted;
}
/**
* Implementation of hook_simpletest().
*/
function content_simpletest() {
$dir = drupal_get_path('module', 'content') .'/tests';
$tests = file_scan_directory($dir, '\.test$');
return array_keys($tests);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment