Prevent ctools custom "content type" plugin's title from being overriden

For the impatient : 'no title override' => TRUE,

Photo of Pascal Morin
Thu, 2015-10-01 14:34By pascal

While you might be tempted to start messing around the setting form itself in your edit callback, you can simply define this in your plugin definition, as follows (in Drupal 7):

$plugin = array(
  'single' => TRUE,
  'title' => t('My plugin'),
  'category' => t('My category'),
  'defaults' => array(
    'my_setting1' => '',
  ),
  // That's the magic bit.
  'no title override' => TRUE,
);

Simple enough, but if you're like me and keep on forgetting the name of the property, might be useful.