You are here

function hashtags_update_7002 in Hashtags 7

1) Create a table for storing relations between hashtags, nodes and comments {hashtags_index} 2) Update Hashtags taxonomy: clean hash symbol for all saved hashtags #hash1 => hash1 3) Activate body fields for selected content types (that have Hashtags field attached)

File

./hashtags.install, line 137
Install, update and uninstall functions for the hashtags module.

Code

function hashtags_update_7002() {

  // create a hashtags_index table
  db_create_table('hashtags_index', drupal_get_schema('hashtags_index', 'hashtags_index'));

  // update terms in hashtags vocabulary - remove first # symbol
  hashtags_clean_hash_symbol();

  // activate hashtags for Body field for selected content types
  hashtags_fields_activate();

  // import hashtags data to index table
  hashtags_index_import();
}