You are here

function ad_set_properties in Advertisement 7.2

Callback for setting ad properties.

See also

ad_entity_property_info()

File

./ad.module, line 413
Defines the core ad entity, including the entity itself, the bundle definitions (ad types), and various API functions to manage ads and interact with them through forms and autocompletes.

Code

function ad_set_properties($ad, $name, $value) {
  if ($name == 'creator') {
    $ad->uid = $value;
  }
}