| 1 |
<?php |
<?php |
| 2 |
// $Id: keyword_rules.install,v 1.1.2.3 2009/03/30 20:48:16 miruoss Exp $ |
// $Id: keyword_rules.install,v 1.1.2.4 2009/03/30 21:02:37 miruoss Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 40 |
/* if no field was created, display a warning to the user */ |
/* if no field was created, display a warning to the user */ |
| 41 |
if (!$field_created) { |
if (!$field_created) { |
| 42 |
drupal_set_message(t(' |
drupal_set_message(t(' |
| 43 |
In order to be able to use the Keyword Rules you have to create a CCK field |
In order to be able to use the Keyword Rules you have to create a CCK field |
| 44 |
for keywords and assign it to the content types that use the SEO Checker. |
for keywords and assign it to the content types that use the SEO Checker. |
| 45 |
Afterwards you should select this field in the '. l('Keyword Rules settings', |
Afterwards you should select this field in the '. l('Keyword Rules settings', |
| 46 |
'admin/settings/seo_checker/keyword_rules') .'.'), 'warning'); |
'admin/settings/seo_checker/keyword_rules') .'.'), 'warning'); |
| 47 |
} |
} |
| 48 |
} |
} |
| 51 |
* Implementation of hook_uninstall(). |
* Implementation of hook_uninstall(). |
| 52 |
*/ |
*/ |
| 53 |
function keyword_rules_uninstall() { |
function keyword_rules_uninstall() { |
| 54 |
|
include_once(drupal_get_path('module', 'seo_checker') .'/seo_checker.install'); |
| 55 |
content_field_instance_delete(SEO_KEYWORD_FIELD_NAME, 'page'); |
content_field_instance_delete(SEO_KEYWORD_FIELD_NAME, 'page'); |
| 56 |
content_field_instance_delete(SEO_KEYWORD_FIELD_NAME, 'story'); |
content_field_instance_delete(SEO_KEYWORD_FIELD_NAME, 'story'); |
| 57 |
|
variable_del('keyword_rules_keywords_field'); |
| 58 |
|
|
| 59 |
|
seo_checker_submodule_uninstall('keyword_rules'); |
| 60 |
} |
} |