You are here

function _ed_classified_variable_set in Classified Ads 5

Same name and namespace in other branches
  1. 5.2 ed_classified_utils.inc \_ed_classified_variable_set()
  2. 6.2 ed_classified_utils.inc \_ed_classified_variable_set()
  3. 7.2 ed_classified_utils.inc \_ed_classified_variable_set()
2 calls to _ed_classified_variable_set()
_ed_classified_get_vid in ./ed_classified_utils.inc
Returns (and possibly creates) a new vocabulary for classified Lifted from image.module. TODO: Create some built-in terms for the created taxonomy: Miscellaneous, Cars, Pets, etc. (look at craigslist for inspiration)
_ed_classified_record_periodic_notifications in ./ed_classified_notifications.inc
Record last periodic notification processing time

File

./ed_classified_utils.inc, line 44
Simple text-based classified ads module. Michael Curry, Exodus Development, Inc. exodusdev@gmail.com for more information, please visit http://exodusdev.com/drupal/modules/classified.module Copyright (c) 2006, 2007 Exodus Development, Inc. All Rights…

Code

function _ed_classified_variable_set($name, $newval, $log = FALSE) {
  if ($log) {
    _edi_wd(sprintf('variable_set \'%s\' changed from \'%s\' to \'%s\'', _ed_classified_cfg_varname($name), _ed_classified_variable_get($name, ''), $newval));
  }
  variable_set(_ed_classified_cfg_varname($name), $newval);
}