function ad_type_load in Advertisement 7.2
Loads an ad type.
Parameters
$type: The machine-readable name of the ad type.
2 calls to ad_type_load()
- ad_type_delete in ./
ad.module - Deletes an ad type.
- ad_ui_help in ./
ad_ui.module - Implements hook_help().
File
- ./
ad.module, line 168 - 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_type_load($type) {
return db_query('SELECT * FROM {ad_type} WHERE type = :type', array(
':type' => $type,
))
->fetchObject();
}