/[drupal]/contributions/modules/seo_checker/keyword_rules/keyword_rules.install
ViewVC logotype

Diff of /contributions/modules/seo_checker/keyword_rules/keyword_rules.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.4, Mon Mar 30 21:02:37 2009 UTC revision 1.1.2.5, Wed Apr 1 09:27:29 2009 UTC
# Line 1  Line 1 
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
# Line 40  function keyword_rules_install() { Line 40  function keyword_rules_install() {
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  }  }
# Line 51  function keyword_rules_install() { Line 51  function keyword_rules_install() {
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  }  }

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

  ViewVC Help
Powered by ViewVC 1.1.2